]> OCCT Git - occt.git/commit
0031851: Data Exchange, STEP - enable Unicode symbols in STEP export IR-2020-10-16
authorabv <abv@opencascade.com>
Wed, 14 Oct 2020 06:14:04 +0000 (09:14 +0300)
committerbugmaster <bugmaster@opencascade.com>
Wed, 14 Oct 2020 16:28:58 +0000 (19:28 +0300)
commitae9f4b64cacf0df612944b3694a3bdfa5f1f29cf
tree35dde87c0df8fbe09438617310825efcd900b96c
parent870ae593c3c060fe822e20bd2f1acfdd3fcbd449
0031851: Data Exchange, STEP - enable Unicode symbols in STEP export

Class STEPCAFControl_Writer is corrected to avoid replacing non-Ascii symbols by question marks, and spaces by underscores, on export to STEP.

Related: DRAW commands dealing with strings in OCAF documents are corrected to pass Unicode symbols as UTF-8.

Off-topic: code saving names of external STEP files in XDE and fetching them back is corrected to preserve Unicode symbols as UTF-8.

Added test bugs xde bug31851

Test de step_4 E7 corrected (no more replacement of spaces by underscores in names of layers)
14 files changed:
src/DDF/DDF_Browser.cxx
src/DDataStd/DDataStd_BasicCommands.cxx
src/DDataStd/DDataStd_NameCommands.cxx
src/DDataStd/DDataStd_TreeBrowser.cxx
src/DDocStd/DDocStd_ApplicationCommands.cxx
src/DDocStd/DDocStd_DocumentCommands.cxx
src/DDocStd/DDocStd_MTMCommands.cxx
src/STEPCAFControl/STEPCAFControl_Writer.cxx
src/XCAFDoc/XCAFDoc_ShapeTool.cxx
src/XDEDRAW/XDEDRAW.cxx
src/XDEDRAW/XDEDRAW_Layers.cxx
src/XDEDRAW/XDEDRAW_Props.cxx
tests/bugs/xde/bug31851 [new file with mode: 0644]
tests/de/step_4/E7