summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2011-12-07 06:23:59 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2011-12-07 06:23:59 (GMT)
commit033961ed062d4632a286c99a8eddb668cb80762b (patch)
tree36dc83e20cb9483bd9e4416844da5daa924f2de8 /generic
parent1926fb992b06f1c7665f6754a7bfa95fee4a043f (diff)
parent2bb69f505c4c33c902681ef4459bdd3ef0556c3b (diff)
downloadtcl-033961ed062d4632a286c99a8eddb668cb80762b.zip
tcl-033961ed062d4632a286c99a8eddb668cb80762b.tar.gz
tcl-033961ed062d4632a286c99a8eddb668cb80762b.tar.bz2
[Bug 3444754] string tolower \u01c5 is wrong
Diffstat (limited to 'generic')
-rw-r--r--generic/tclUniData.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/generic/tclUniData.c b/generic/tclUniData.c
index 6cff83a..a06e84d 100644
--- a/generic/tclUniData.c
+++ b/generic/tclUniData.c
@@ -751,7 +751,7 @@ static const int groups[] = {
7602306, -3964863, 9830530, -6389630, 6881345, 6750273, 6717505,
2588737, 6619201, 6651969, 6783041, -3178366, 6914113, 6848577,
-5341054, 6979649, -4259710, 7012417, 7143489, 7110721, 7176257,
- 5, -1834878, 65633, 32931, 65698, 2588802, -3178431, -1834943,
+ 5, -1834878, 65633, 32963, 65698, 2588802, -3178431, -1834943,
-4259775, 353730625, -5341119, 353632321, -354385790, -6389695,
2261057, 2326593, -353337214, -353238910, -353304446, 6881410,
6750338, 6717570, 6619266, 6652034, 6783106, -1385430910, 6848642,
@@ -775,7 +775,8 @@ static const int groups[] = {
* Unicode character.
*/
-#define UNICODE_CATEGORY_MASK 0X1F
+#define UNICODE_CATEGORY_MASK 0x1F
+#define UNICODE_OUT_OF_RANGE 0x10000u
enum {
UNASSIGNED,
@@ -817,7 +818,7 @@ enum {
*/
#define GetCaseType(info) (((info) & 0xE0) >> 5)
-#define GetCategory(info) ((info) & 0x1F)
+#define GetCategory(ch) (GetUniCharInfo(ch) & 0x1F)
#define GetDelta(info) (((info) > 0) ? ((info) >> 15) : (~(~((info)) >> 15)))
/*