]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - utf8lib.c
Offsetmapping now could be customized on per-texture basis. Added mod_q3shader_defaul...
[xonotic/darkplaces.git] / utf8lib.c
index 6fbd5f62a8e2283e560f554ec7ab51f27c9b0697..151a1ca5b90f39b95bcdae64906c78597c341505 100644 (file)
--- a/utf8lib.c
+++ b/utf8lib.c
@@ -585,7 +585,7 @@ int u8_fromchar(Uchar w, char *to, size_t maxlen)
                to[3] = 0x80 | (w & 0x3F); w >>= 6;
                to[2] = 0x80 | (w & 0x3F); w >>= 6;
                to[1] = 0x80 | (w & 0x3F); w >>= 6;
-               to[0] = 0xE0 | w;
+               to[0] = 0xF0 | w;
                return 4;
        }
        return 0;