diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-12-31 21:09:46 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-12-31 21:09:46 +0100 |
commit | 6cadd03bbeace1c256ba875c2e6a877f924877cd (patch) | |
tree | 8079ea6f6ccdb1c2cbb2b7813f618837617cb33e /sys/include | |
parent | 6d99096136278f06f6333f927da34105a8dfe0bf (diff) |
fix utf and rune handling in preparation for 32bit runes
Diffstat (limited to 'sys/include')
-rw-r--r-- | sys/include/ape/utf.h | 3 | ||||
-rw-r--r-- | sys/include/libc.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/sys/include/ape/utf.h b/sys/include/ape/utf.h index 6302166fb..bba977100 100644 --- a/sys/include/ape/utf.h +++ b/sys/include/ape/utf.h @@ -14,7 +14,8 @@ enum UTFmax = 3, /* maximum bytes per rune */ Runesync = 0x80, /* cannot represent part of a UTF sequence (<) */ Runeself = 0x80, /* rune and UTF sequences are the same (<) */ - Runeerror = 0x80, /* decoding error in UTF */ + Runeerror = 0xFFFD, /* decoding error in UTF */ + Runemax = 0xFFFF, /* 16 bit rune */ }; /* diff --git a/sys/include/libc.h b/sys/include/libc.h index 833a3f50b..de6c3105d 100644 --- a/sys/include/libc.h +++ b/sys/include/libc.h @@ -45,6 +45,7 @@ enum Runesync = 0x80, /* cannot represent part of a UTF sequence (<) */ Runeself = 0x80, /* rune and UTF sequences are the same (<) */ Runeerror = 0xFFFD, /* decoding error in UTF */ + Runemax = 0xFFFF, /* 16 bit rune */ }; /* |