From: Collin Funk Date: Wed, 29 May 2024 09:35:02 +0000 (-0700) Subject: gnulib-tool.py: Don't emit non-ASCII shell output. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=1b74469a3aaa1a4bbe94272fde87c2335afb89e1;p=gnulib.git gnulib-tool.py: Don't emit non-ASCII shell output. Reported by Bruno Haible in . * pygnulib/GLModuleSystem.py (GLModule.shell_id_chars): Use the re.ASCII flag for the regular expression. --- diff --git a/ChangeLog b/ChangeLog index 9c22b7fb38..87e25ab81e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2024-05-29 Collin Funk + + gnulib-tool.py: Don't emit non-ASCII shell output. + Reported by Bruno Haible in + . + * pygnulib/GLModuleSystem.py (GLModule.shell_id_chars): Use the re.ASCII + flag for the regular expression. + 2024-05-28 Collin Funk gnulib-tool.py: Add missing docstring. diff --git a/pygnulib/GLModuleSystem.py b/pygnulib/GLModuleSystem.py index f1774f64fc..5b8d331dd6 100644 --- a/pygnulib/GLModuleSystem.py +++ b/pygnulib/GLModuleSystem.py @@ -167,7 +167,7 @@ class GLModule: re.M) # Regular expression matching module names that can be used as shell ids. - shell_id_pattern: ClassVar[re.Pattern] = re.compile(r'^\w*$') + shell_id_pattern: ClassVar[re.Pattern] = re.compile(r'^\w*$', re.ASCII) cache: dict[str, Any] content: str