From 2dca8ca5cdee5d8f5b2c277e54de75b96787296e Mon Sep 17 00:00:00 2001 From: silverqx Date: Sun, 2 Apr 2023 12:20:44 +0200 Subject: [PATCH] fixed RC file encoding on msys2 with Qt6 --- qmake/features/tiny_resource_and_manifest.prf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qmake/features/tiny_resource_and_manifest.prf b/qmake/features/tiny_resource_and_manifest.prf index e404f6608..7a897d39b 100644 --- a/qmake/features/tiny_resource_and_manifest.prf +++ b/qmake/features/tiny_resource_and_manifest.prf @@ -78,13 +78,13 @@ defineReplace(tiny_configure_cmake_rc) { else: token = $$rcBasename # This solves the problem with the © character, problem with the encoding - # I have tried to solve this min. 5 times 🤬🤔 - # Use utf8 on MinGW and ANSI with msvc Qt6, msvc Qt5 accepts utf8! + # I have tried to solve this min. 6 times 🤬🤔 + # Use utf8 with Qt5 and ANSI with Qt6. I hope this is the last time I'm updating this. # The core of the problem is in the $$cat() and write_file() qmake functions they # don't know process UTF-8 encoded files, they use the ANSI encoding. # Few weeks later: I don't understand how the heck is possible that it works with # the msvc Qt5. - win32-msvc|win32-clang-msvc:greaterThan(QT_MAJOR_VERSION, 5): \ + greaterThan(QT_MAJOR_VERSION, 5): \ pragmaCodepage = DEFAULT else: \ pragmaCodepage = 65001