]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix typo in utf8 lib making characters U+1XXXX impossible
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 20 Jan 2010 06:58:45 +0000 (06:58 +0000)
committerRudolf Polzer <rpolzer@grawp.div0.qc.to>
Sun, 24 Jan 2010 18:09:38 +0000 (19:09 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9840 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=7c4137b67a26250669e48960259fa58cce39c1e8

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;