From 41b6f0ce85d98c62739b04863e8c38a1f4154e80 Mon Sep 17 00:00:00 2001 From: Thorsten Glaser Date: Fri, 14 Jul 2017 14:02:44 +0200 Subject: Handle more cases of combining characters [BZ #21750] * unicode-gen/utf8_gen.py: Treat category Me and Mn as combining. --- localedata/unicode-gen/utf8_gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'localedata') diff --git a/localedata/unicode-gen/utf8_gen.py b/localedata/unicode-gen/utf8_gen.py index 12f01d8..332751b 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' -- cgit v1.1