]> 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)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 20 Jan 2010 06:58:45 +0000 (06:58 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9840 d7cf8633-e32d-0410-b094-e92efae38249

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;