From: Thorsten Glaser Date: Fri, 14 Jul 2017 12:02:44 +0000 (+0200) Subject: Handle more cases of combining characters X-Git-Tag: glibc-2.27~1143 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=41b6f0ce85d98c62739b04863e8c38a1f4154e80;p=thirdparty%2Fglibc.git Handle more cases of combining characters [BZ #21750] * unicode-gen/utf8_gen.py: Treat category Me and Mn as combining. --- diff --git a/localedata/unicode-gen/utf8_gen.py b/localedata/unicode-gen/utf8_gen.py index 12f01d89638..332751b35b4 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'