Details
-
User Story
-
Resolution: Done
-
P1: Critical
-
None
-
None
Description
Change compiler flags and tell the compiler that Qt sources are utf8.
Original report below:
I only tried windows 10, msvc 2015 64bit, latest 5.6 branch, but my code page is 936(Simplified Chinese).
Control Panel->Region, in Administrative tab, click "Change system locale...", and select "Chinese(Simplified, China)".
There are warnings like:
cl -c -FIqt_pch.h -Yuqt_pch.h -Fp.pch\release\Qt5Core_pch.pch -nologo -Zc:wchar_t -FS -Zc:strictStrings -Zc:throwingNew -O2 -MD -EHsc -GR -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -DUNICODE -DWIN32 -DWIN64 -DQT_NO_USING_NAMESPACE -DPCRE_STATIC -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_NO_DEBUG -DNDEBUG -D_WINDLL -IC:\qt\qt5\qtbase\src\corelib -I. -IC:\qt\qt5\qtbase\src\3rdparty\zlib -Iglobal -IC:\qt\qt5\qtbase\src\3rdparty\pcre -IC:\qt\qt5\qtbase\src\3rdparty\harfbuzz\src -IC:\qt\qt5\qtbase\src\3rdparty\md5 -IC:\qt\qt5\qtbase\src\3rdparty\md4 -IC:\qt\qt5\qtbase\src\3rdparty\sha3 -I..\..\include -I..\..\include\QtCore -I..\..\include\QtCore\5.6.2 -I..\..\include\QtCore\5.6.2\QtCore -Itmp -I.moc\release -IC:\qt\qt5\qtbase\mkspecs\win32-msvc2015 -Fo.obj\release\ @C:\Users\QiLiang\AppData\Local\Temp\qstring.obj.1184.344.jom qstring.cpp C:\qt\qt5\qtbase\src\corelib\tools\qstring.cpp(1655): warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss link /NOLOGO /DYNAMICBASE /NXCOMPAT /BASE:0x67000000 /INCREMENTAL:NO /DLL /SUBSYSTEM:WINDOWS /VERSION:5.6 /MANIFEST:embed /OUT:..\..\lib\Qt5Core.dll @C:\Users\QiLiang\AppData\Local\Temp\Qt5Core.dll.1184.1610.jom Creating library ..\..\lib\Qt5Core.lib and object ..\..\lib\Qt5Core.exp copy /y ..\..\lib\Qt5Core.dll ..\..\bin 1 file(s) copied.
Other references: http://lists.qt-project.org/pipermail/development/2016-March/025450.html
tools/qstring.cpp:1834,80: Non-printable character #8594 (0x2192) '→' tools/qstring.cpp:1893,69: Non-printable character #8594 (0x2192) '→' tools/qstring.cpp:8295,57: Non-printable character #8805 (0x2265) '≥' tools/qstring.cpp:8306,57: Non-printable character #8805 (0x2265) '≥'
Attachments
Issue Links
- relates to
-
COIN-126 should test Qt in non-english locale, at least CJK
- Need More Info
-
QTBUG-58161 qtuiohandler.cpp fail to compile under simplified chinese windows 10
- Closed
- mentioned in
-
Page Loading...
For Gerrit Dashboard: QTBUG-56155 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
173622,3 | Fix libs build with msvc on Chinese locale on Windows | 5.6 | qt/qtbase | Status: ABANDONED | -1 | 0 |
184030,3 | Fix libs build with msvc on Chinese locale on Windows | 5.8 | qt/qtbase | Status: MERGED | -2 | 0 |
184230,3 | Fix libs build with msvc on Chinese locale on Windows | 5.8 | qt/qtdeclarative | Status: MERGED | -2 | 0 |