Seems that some characters crash the String class in the String destructor:
More specifically this crash on Windows:
const char* chars2 = “é AïeAïe Aïe”;
{
const CharPointer_UTF8 cp2(chars2);
String r2(cp2);
}
Seems that some characters crash the String class in the String destructor:
More specifically this crash on Windows:
const char* chars2 = “é AïeAïe Aïe”;
{
const CharPointer_UTF8 cp2(chars2);
String r2(cp2);
}
Of course it crashes.
Do NOT put non-ascii characters into your source code. It’s completely non-portable.
The only safe way to embed extended chars in c++ code is to write them as fully-escaped utf-8.
Doh. Should have been thinking before posting.
Thanks