Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
Qt Creator 4.5.2, Qt Creator 4.7.2, Qt Creator 4.8.0-rc1
-
Windows 10 Japanese
-
-
9ce4260d232d94a9c902333e4b894fc0514d9e6d (qt/qtbase/5.12.1)
Description
Condition:
- Japanese environment ?
- File size over 64KiB (0x10000 bytes)
- Two-byte characters span any boundary of 0x10000 bytes (0x0FFFF and 0x10000, 0x1FFFF and 0x20000, ...)
- "System" on Option -> Text Editor -> Behavior -> Default Encoding
Example files are attached, OK will be open normally, but NG will be truncated Shift_JIS characters on bottom.
Occasionally, it occurs when two-byte characters such as comments are straddled on the boundary.
If default encode is set as Shift_JIS, it's open normally. But there is risk potentially that file will be corrupted if system is using CP932 as system.
Attachments
Issue Links
- relates to
-
QTCREATORBUG-21623 Clang uses wrong encoding for header file not open in editor
- Closed
For Gerrit Dashboard: QTCREATORBUG-21622 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
247988,2 | Core: Fix using system codec | 4.8 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |
247992,3 | QWindowsLocalCodec::convertToUnicode(): Fix remaining char conversion | 5.12.1 | qt/qtbase | Status: MERGED | +2 | 0 |