summaryrefslogtreecommitdiffstats
path: root/share/mklocale
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2003-08-21 19:23:15 +0000
committerache <ache@FreeBSD.org>2003-08-21 19:23:15 +0000
commit1bb35f7e47abbe19da3b78380d04d1d187229e0a (patch)
tree80db76c10e69123f0404246c917f78bb3c9d4112 /share/mklocale
parentdd0b6b7e289fb78a448ecf62766e2af92801c8ae (diff)
downloadFreeBSD-src-1bb35f7e47abbe19da3b78380d04d1d187229e0a.zip
FreeBSD-src-1bb35f7e47abbe19da3b78380d04d1d187229e0a.tar.gz
Fix ascii compatibility
Submitted by: Liu Kang <liukang@bjpu.edu.cn>
Diffstat (limited to 'share/mklocale')
-rw-r--r--share/mklocale/zh_CN.GB18030.src29
1 files changed, 14 insertions, 15 deletions
diff --git a/share/mklocale/zh_CN.GB18030.src b/share/mklocale/zh_CN.GB18030.src
index 3e5f6c1..9c2d875 100644
--- a/share/mklocale/zh_CN.GB18030.src
+++ b/share/mklocale/zh_CN.GB18030.src
@@ -37,22 +37,21 @@ ENCODING "GB18030"
/*
* ASCII compatible
*/
-ALPHA 0x41 - 0x5a 0x61 - 0x7a
-BLANK 0x9 0xb 0x20
-CONTROL 0x0 - 0x1f 0x7f
-DIGIT 0x30 - 0x39
-LOWER 0x61 - 0x7a
-MAPLOWER < 0x61 - 0x7a : 0x41 >
-MAPUPPER < 0x41 - 0x5a : 0x61 >
-PRINT 0x20
+ALPHA 'A' - 'Z' 'a' - 'z'
+BLANK ' ' '\t' '\v'
+CONTROL 0x00 - 0x1f 0x7f
+DIGIT '0' - '9'
+GRAPH 0x21 - 0x7e
+LOWER 'a' - 'z'
+MAPLOWER < 'A' - 'Z' : 'a' > < 'a' - 'z' : 'a' >
+MAPUPPER < 'A' - 'Z' : 'A' > < 'a' - 'z' : 'A' >
+PRINT 0x20 - 0x7e
PUNCT 0x21 - 0x2f 0x3a - 0x40 0x5b - 0x60 0x7b - 0x7e
-SPACE 0x9 - 0xd 0x20
-TODIGIT < 0x30 - 0x39 : 0x0000 >
-TODIGIT < 0x41 - 0x46 : 10 >
-TODIGIT < 0x61 - 0x66 : 10 >
-UPPER 0x41 - 0x5a
-XDIGIT 0x30 - 0x39 0x41 - 0x46 0x61 - 0x66
-
+SPACE 0x09 - 0x0d 0x20
+TODIGIT < '0' - '9' : 0 >
+TODIGIT < 'A' - 'F' : 10 > < 'a' - 'f' : 10 >
+UPPER 'A' - 'Z'
+XDIGIT '0' - '9' 'a' - 'f' 'A' - 'F'
/*
* GBK compatible
*/
OpenPOWER on IntegriCloud