0030694: Data Exchange - support non-standard GB2312-encoded STEP files IR-2019-05-24 master
authorkgv <kgv@opencascade.com>
Mon, 6 May 2019 13:00:16 +0000 (16:00 +0300)
committerbugmaster <bugmaster@opencascade.com>
Fri, 24 May 2019 13:59:16 +0000 (16:59 +0300)
commite3249d8e5a92f5106c72ae14a74e2934bca786fb
tree6a92bf30e6b2561094fae3bb8390e348a3922b6e
parent48ba181118ec22a4cc0f12a0732c16049e8c602e
0030694: Data Exchange - support non-standard GB2312-encoded STEP files

STEPCAFControl_Reader::SourceCodePage() - added property defining text encoding
for converting names within STEPCAFControl_Reader::ReadNames() method.
Added associated "read.stepcaf.codepage" parameter,
which default value is Resource_UTF8, preserving current behavior.

Resource_FormatType enumeration has been extended by UTF8 and SystemLocale values.
Resource_Unicode - added conversion methods taking Resource_FormatType as argument.

GetName command has been corrected to NOT replace non-Latin symbols.
src/DDataStd/DDataStd_NameCommands.cxx
src/Resource/Resource_FormatType.hxx
src/Resource/Resource_Unicode.cxx
src/Resource/Resource_Unicode.hxx
src/STEPCAFControl/STEPCAFControl_Controller.cxx
src/STEPCAFControl/STEPCAFControl_Reader.cxx
src/STEPCAFControl/STEPCAFControl_Reader.hxx
src/XDEDRAW/XDEDRAW_Common.cxx
tests/bugs/step/bug23251
tests/bugs/step/bug26342
tests/bugs/step/bug30694 [new file with mode: 0644]