diff options
author | Thorsten Glaser <tg@mirbsd.de> | 2017-07-14 14:02:44 +0200 |
---|---|---|
committer | Mike FABIAN <mfabian@redhat.com> | 2017-08-17 11:06:08 +0200 |
commit | 41b6f0ce85d98c62739b04863e8c38a1f4154e80 (patch) | |
tree | 1895613832ab6b34c9c80674f01b5248efa4a607 /localedata/unicode-gen | |
parent | 580be3035d2e0f479c4ac955bf719b0bf936f5cf (diff) | |
download | glibc-41b6f0ce85d98c62739b04863e8c38a1f4154e80.tar.gz glibc-41b6f0ce85d98c62739b04863e8c38a1f4154e80.tar.xz glibc-41b6f0ce85d98c62739b04863e8c38a1f4154e80.zip |
Handle more cases of combining characters
[BZ #21750] * unicode-gen/utf8_gen.py: Treat category Me and Mn as combining.
Diffstat (limited to 'localedata/unicode-gen')
-rwxr-xr-x | localedata/unicode-gen/utf8_gen.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/localedata/unicode-gen/utf8_gen.py b/localedata/unicode-gen/utf8_gen.py index 12f01d8963..332751b35b 100755 --- a/localedata/unicode-gen/utf8_gen.py +++ b/localedata/unicode-gen/utf8_gen.py @@ -232,7 +232,7 @@ def process_width(outfile, ulines, elines): width_dict[key] = unicode_utils.ucs_symbol(key) + '\t2' for line in ulines: fields = line.split(";") - if fields[4] == "NSM" or fields[2] == "Cf": + if fields[4] == "NSM" or fields[2] in ("Cf", "Me", "Mn"): width_dict[int(fields[0], 16)] = unicode_utils.ucs_symbol( int(fields[0], 16)) + '\t0' |