public inbox for glibc-cvs@sourceware.org help / color / mirror / Atom feed
From: Mike Fabian <mfabian@sourceware.org> To: glibc-cvs@sourceware.org Subject: [glibc] localedata/unicode-gen/utf8_gen.py: adapt regexp to get relevant lines from EastAsianWidth.txt Date: Sat, 16 Sep 2023 07:22:24 +0000 (GMT) [thread overview] Message-ID: <20230916072224.25DDC3857C4F@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=71de3aead9fffe89556e80ebc94aa918d8ee7bca commit 71de3aead9fffe89556e80ebc94aa918d8ee7bca Author: Mike FABIAN <mfabian@redhat.com> Date: Thu Sep 14 19:18:00 2023 +0200 localedata/unicode-gen/utf8_gen.py: adapt regexp to get relevant lines from EastAsianWidth.txt Reviewed-by: Carlos O'Donell <carlos@redhat.com> Diff: --- localedata/unicode-gen/utf8_gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = []
reply other threads:[~2023-09-16 7:22 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20230916072224.25DDC3857C4F@sourceware.org \ --to=mfabian@sourceware.org \ --cc=glibc-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).