Commit ec84fe07 authored by Victor Yacovlev's avatar Victor Yacovlev

LLVM/Win32: fixed unicode names handling for MinGW-4.6 as

parent 086da35c
......@@ -87,8 +87,8 @@ CString NameTranslator::screenUtf8Name(const QString &x)
CString result;
for (int i=0; i<x.length(); i++) {
const QChar source = x.at(i);
if (0 == source.toLatin1()) {
QString code = "\\" + QString::number(source.unicode(), 16);
if (0 == source.toLatin1() || source.isSpace()) {
QString code = "u" + QString::number(source.unicode(), 16).toUpper();
result.append(code.toStdString());
}
else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment