From: Mike FABIAN Date: Thu, 14 Sep 2023 17:18:00 +0000 (+0200) Subject: localedata/unicode-gen/utf8_gen.py: adapt regexp to get relevant lines from EastAsian... X-Git-Tag: glibc-2.39~415 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71de3aead9fffe89556e80ebc94aa918d8ee7bca;p=thirdparty%2Fglibc.git localedata/unicode-gen/utf8_gen.py: adapt regexp to get relevant lines from EastAsianWidth.txt Reviewed-by: Carlos O'Donell --- diff --git a/localedata/unicode-gen/utf8_gen.py b/localedata/unicode-gen/utf8_gen.py index b48dc2aaa45..117c5a96526 100755 --- a/localedata/unicode-gen/utf8_gen.py +++ b/localedata/unicode-gen/utf8_gen.py @@ -350,7 +350,7 @@ if __name__ == "__main__": # the EastAsianWidth.txt file. if re.match(r'.*\.\..*', LINE): continue - if re.match(r'^[^;]*;[WF]', LINE): + if re.match(r'^[^;]*;\s*[WF]\s*', LINE): EAST_ASIAN_WIDTH_LINES.append(LINE.strip()) with open(ARGS.prop_list_file, mode='r') as PROP_LIST_FILE: PROP_LIST_LINES = []