]> OCCT Git - occt.git/commit
0014673: Provide true support for Unicode symbols
authorabv <abv@opencascade.com>
Sun, 25 Oct 2020 19:10:27 +0000 (22:10 +0300)
committerbugmaster <bugmaster@opencascade.com>
Wed, 28 Oct 2020 19:18:11 +0000 (22:18 +0300)
commit94f16a89613e9497234c73969319c66b642df235
tree7d74706ec95ff751393c9d5f668f85688e005ce8
parentaa7e9f8d78fcea7c2310c54868d8c453f63e7478
0014673: Provide true support for Unicode symbols

Construction of TCollection_ExtendedString from plain C string is fixed to consider input string as UTF-8 in several places (identified as described in notes to #31113).

Message_MsgFile is corrected to load resource file as UTF-8 (unless it has BOM indicating use of UTF-16).

Added tests for use of Unicode in some DRAW commands (bugs demo bug14673_*)
17 files changed:
dox/upgrade/upgrade.md
src/DDataStd/DDataStd_BasicCommands.cxx
src/DDocStd/DDocStd_ApplicationCommands.cxx
src/DDocStd/DDocStd_MTMCommands.cxx
src/DNaming/DNaming_BasicCommands.cxx
src/DNaming/DNaming_ModelingCommands.cxx
src/Message/Message_MsgFile.cxx
src/TObj/TObj_Assistant.cxx
src/TObjDRAW/TObjDRAW.cxx
src/ViewerTest/ViewerTest_ViewerCommands.cxx
src/XDEDRAW/XDEDRAW.cxx
src/XDEDRAW/XDEDRAW_Notes.cxx
src/XSDRAWSTLVRML/XSDRAWSTLVRML.cxx
tests/bugs/demo/bug14673_1 [new file with mode: 0644]
tests/bugs/demo/bug14673_2 [new file with mode: 0644]
tests/bugs/demo/bug14673_3 [new file with mode: 0644]
tests/bugs/demo/bug14673_4 [new file with mode: 0644]