From: kgv Date: Fri, 13 Jan 2017 17:24:11 +0000 (+0300) Subject: 0027585: It is not possible to store OCAF documents to paths with special characters... X-Git-Tag: V_01_2017_06_30~49 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=bda0b631c8a28b16f4d5a2f055988cad950cc044;p=occt-copy.git 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. --- diff --git a/src/TCollection/TCollection_AsciiString.cxx b/src/TCollection/TCollection_AsciiString.cxx index 127b119135..09156abf59 100644 --- a/src/TCollection/TCollection_AsciiString.cxx +++ b/src/TCollection/TCollection_AsciiString.cxx @@ -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++) {