aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/localedef
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2016-10-06 19:46:43 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2016-10-06 19:46:43 +0000
commitc7edf4fd0bc9fa6acdbd38d4fbe5dee2775f5346 (patch)
tree2e6461731729457754602d58af3276757785fccd /usr.bin/localedef
parent32641585a92d1ffc9d2939f7d97ad06e25bbe987 (diff)
Notes
Diffstat (limited to 'usr.bin/localedef')
-rw-r--r--usr.bin/localedef/ctype.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/localedef/ctype.c b/usr.bin/localedef/ctype.c
index e737ed5f876b..0e238d79080f 100644
--- a/usr.bin/localedef/ctype.c
+++ b/usr.bin/localedef/ctype.c
@@ -407,9 +407,9 @@ dump_ctype(void)
continue;
}
- if ((last_ct != NULL) && (last_ct->ctype == ctn->ctype)) {
+ if ((last_ct != NULL) && (last_ct->ctype == ctn->ctype) &&
+ (last_ct->wc + 1 == wc)) {
ct[rl.runetype_ext_nranges-1].max = wc;
- last_ct = ctn;
} else {
rl.runetype_ext_nranges++;
ct = realloc(ct,
@@ -417,8 +417,8 @@ dump_ctype(void)
ct[rl.runetype_ext_nranges - 1].min = wc;
ct[rl.runetype_ext_nranges - 1].max = wc;
ct[rl.runetype_ext_nranges - 1].map = ctn->ctype;
- last_ct = ctn;
}
+ last_ct = ctn;
if (ctn->tolower == 0) {
last_lo = NULL;
} else if ((last_lo != NULL) &&