summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/freetype/include/freetype/internal/services/svgxval.h
diff options
context:
space:
mode:
authorIlya Fedin <fedin-ilja2010@ya.ru>2023-02-09 09:51:54 +0400
committerIlya Fedin <fedin-ilja2010@ya.ru>2023-03-02 09:05:10 +0400
commit1571cca6baf52ee97cdff006dbe6278c544b800d (patch)
tree47b4810abc48514594639780bc71de4485c51923 /src/3rdparty/freetype/include/freetype/internal/services/svgxval.h
parentf0e5910c305aa143dcf1238342fe6bf036d97dfc (diff)
Rely on Windows to generate CF_TEXT when active code page is UTF-8
It's possible since Windows 10 1903 to set the active code page to UTF-8 using the manifest. In that mode, QString::toLocal8Bit converts to UTF-8 and the legacy programs not using UTF-8 codepage can't interpret the value. We can detect whether the UTF-8 code page is used, and in that case only provide data as CF_UNICODETEXT. Windows will then synthesize the CF_TEXT format when the clipboard data is consumed, using the right code page for the target application. https://learn.microsoft.com/en-us/windows/apps/design/globalizing/use-utf8-code-page Change-Id: Ie024a618556d9bb5b5c7ac70507d279b959ff6db Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 481771a331b904810ce3da459d4b6293a83fcec0)
Diffstat (limited to 'src/3rdparty/freetype/include/freetype/internal/services/svgxval.h')
0 files changed, 0 insertions, 0 deletions