]> Savannah Git Hosting - gnulib.git/commitdiff
gnulib-tool.py: Don't emit non-ASCII shell output.
authorCollin Funk <collin.funk1@gmail.com>
Wed, 29 May 2024 09:35:02 +0000 (02:35 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Wed, 29 May 2024 09:35:02 +0000 (02:35 -0700)
Reported by Bruno Haible in
<https://lists.gnu.org/archive/html/bug-gnulib/2024-05/msg00441.html>.

* pygnulib/GLModuleSystem.py (GLModule.shell_id_chars): Use the re.ASCII
flag for the regular expression.

ChangeLog
pygnulib/GLModuleSystem.py

index 9c22b7fb38e1871fb17c6cd35a4f10f26283ca48..87e25ab81efe8931631fe2a5ea6f793ba21e8fdb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2024-05-29  Collin Funk  <collin.funk1@gmail.com>
+
+       gnulib-tool.py: Don't emit non-ASCII shell output.
+       Reported by Bruno Haible in
+       <https://lists.gnu.org/archive/html/bug-gnulib/2024-05/msg00441.html>.
+       * pygnulib/GLModuleSystem.py (GLModule.shell_id_chars): Use the re.ASCII
+       flag for the regular expression.
+
 2024-05-28  Collin Funk  <collin.funk1@gmail.com>
 
        gnulib-tool.py: Add missing docstring.
index f1774f64fc02719caec54101934376ed01dfa2ca..5b8d331dd647e9c86b5e158bc659f906a9208ebe 100644 (file)
@@ -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