mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
build failure
This commit is contained in:
parent
55ae74b3d1
commit
c86b3b016e
@ -414,13 +414,13 @@ encode_wchar(wchar_t ch) const {
|
|||||||
return string(1, (char)ch);
|
return string(1, (char)ch);
|
||||||
} else if (ch < 0x800) {
|
} else if (ch < 0x800) {
|
||||||
return
|
return
|
||||||
string(1, (char)(ch >> 6) | 0xc0) +
|
string(1, (char)((ch >> 6) | 0xc0)) +
|
||||||
string(1, (char)(ch & 0x3f) | 0x80);
|
string(1, (char)((ch & 0x3f) | 0x80));
|
||||||
} else {
|
} else {
|
||||||
return
|
return
|
||||||
string(1, (char)(ch >> 12) | 0xe0) +
|
string(1, (char)((ch >> 12) | 0xe0)) +
|
||||||
string(1, (char)((ch >> 6) & 0x3f) | 0x80) +
|
string(1, (char)(((ch >> 6) & 0x3f) | 0x80)) +
|
||||||
string(1, (char)(ch & 0x3f) | 0x80);
|
string(1, (char)((ch & 0x3f) | 0x80));
|
||||||
}
|
}
|
||||||
|
|
||||||
case E_unicode:
|
case E_unicode:
|
||||||
@ -428,6 +428,8 @@ encode_wchar(wchar_t ch) const {
|
|||||||
string(1, (char)(ch >> 8)) +
|
string(1, (char)(ch >> 8)) +
|
||||||
string(1, (char)(ch & 0xff));
|
string(1, (char)(ch & 0xff));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
x
Reference in New Issue
Block a user