mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-04 18:06:22 +03: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:
parent
6cfc06f00d
commit
bda0b631c8
@ -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++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user