diff options
author | Mike FABIAN <mfabian@redhat.com> | 2023-09-14 19:18:00 +0200 |
---|---|---|
committer | Mike FABIAN <mfabian@redhat.com> | 2023-09-16 08:37:02 +0200 |
commit | 71de3aead9fffe89556e80ebc94aa918d8ee7bca (patch) | |
tree | 396d0ac4ed9d3ecd0c454efde2ae5fc8547db892 /localedata/unicode-gen/utf8_gen.py | |
parent | ba017b4f9d90ee30e409034b4a32af71e3136a7f (diff) | |
download | glibc-71de3aead9fffe89556e80ebc94aa918d8ee7bca.tar glibc-71de3aead9fffe89556e80ebc94aa918d8ee7bca.tar.gz glibc-71de3aead9fffe89556e80ebc94aa918d8ee7bca.tar.bz2 glibc-71de3aead9fffe89556e80ebc94aa918d8ee7bca.zip |
localedata/unicode-gen/utf8_gen.py: adapt regexp to get relevant lines from EastAsianWidth.txt
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'localedata/unicode-gen/utf8_gen.py')
-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 b48dc2aaa4..117c5a9652 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'.*<reserved-.+>\.\.<reserved-.+>.*', 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 = [] |