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-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=f9bbb14a47a2210bf0dec3e26885b7f27a1a0010;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++) {