mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-09-07 13:18:19 +08:00
0027585: It is not possible to store OCAF documents to paths with special characters in their names
TCollection_AsciiString - fixed inproper convertion from UTF-16 string.
This commit is contained in:
@@ -219,9 +219,10 @@ TCollection_AsciiString::TCollection_AsciiString(
|
||||
//---------------------------------------------------------------------------
|
||||
TCollection_AsciiString::TCollection_AsciiString(const TCollection_ExtendedString& astring,
|
||||
const Standard_Character replaceNonAscii)
|
||||
: mystring(0)
|
||||
: mystring (0)
|
||||
{
|
||||
if (replaceNonAscii || astring.IsAscii()) {
|
||||
if (replaceNonAscii)
|
||||
{
|
||||
mylength = astring.Length();
|
||||
mystring = Allocate(mylength+1);
|
||||
for(int i = 0; i < mylength; i++) {
|
||||
|
||||
Reference in New Issue
Block a user