mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
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_*)
This commit is contained in:
@@ -453,7 +453,7 @@ static Standard_Integer DNaming_ImportShape (Draw_Interpretor& di,
|
||||
const TopoDS_Shape& aShape = DBRep::Get(a[3]);
|
||||
if(aShape.IsNull()) return 1;
|
||||
if(nb == 5) {
|
||||
TDataStd_Name::Set(L, a[4]);
|
||||
TDataStd_Name::Set(L, TCollection_ExtendedString (a[4], Standard_True));
|
||||
}
|
||||
|
||||
DNaming::LoadImportedShape(L, aShape);
|
||||
|
Reference in New Issue
Block a user