X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/4bc08995411e21f3564f09e136809be68ddf96a8..d9ee52e4f0fbe9a1ae00d0e66f9e6f0a07fa319f:/lib/gdi/font.cpp?ds=sidebyside diff --git a/lib/gdi/font.cpp b/lib/gdi/font.cpp index 187512d5..9a7ec069 100644 --- a/lib/gdi/font.cpp +++ b/lib/gdi/font.cpp @@ -467,7 +467,7 @@ int eTextPara::renderString(const std::string &string, int rflags) while(p != string.end()) { - unsigned int unicode=*p++; + unsigned int unicode=(unsigned char)*p++; if (unicode & 0x80) // we have (hopefully) UTF8 here, and we assume that the encoding is VALID {