about summary refs log tree commit diff
path: root/posix/bug-regex1.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2021-09-01 13:17:34 -0400
committerDJ Delorie <dj@redhat.com>2021-09-01 14:29:59 -0400
commit69623c0db0a540f26ee537bae09446d3dcdf1f80 (patch)
tree089930c955e3a1d8779d4e19100ea17420e3a42e /posix/bug-regex1.c
parent224edada607ebc6aaa1aadaae423128fae7880df (diff)
downloadglibc-69623c0db0a540f26ee537bae09446d3dcdf1f80.tar.gz
glibc-69623c0db0a540f26ee537bae09446d3dcdf1f80.tar.xz
glibc-69623c0db0a540f26ee537bae09446d3dcdf1f80.zip
posix: remove some iso-8859-encoded characters
With the increasing adoption of UTF-8, modern editors may (will?)
replace iso-8859-encoded characters in the range 0x80..0xff with
their UTF-8 equivalent, as will mailers and other tools.  This breaks
our testsuite and corrupts patches.

So, this patch starts replacing these problematic characters with
\OCTal sequences instead (adding support for those in tst-fnmatch.c)
or with plain ASCII characters (PTESTS).

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'posix/bug-regex1.c')
-rw-r--r--posix/bug-regex1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/posix/bug-regex1.c b/posix/bug-regex1.c
index 38eb543951..4432a90b81 100644
--- a/posix/bug-regex1.c
+++ b/posix/bug-regex1.c
@@ -23,7 +23,7 @@ main (void)
 
   puts ("in C locale");
   setlocale (LC_ALL, "C");
-  s = re_compile_pattern ("[anù]*n", 7, &regex);
+  s = re_compile_pattern ("[an\371]*n", 7, &regex);
   if (s != NULL)
     {
       puts ("re_compile_pattern return non-NULL value");
@@ -43,7 +43,7 @@ main (void)
 
   puts ("in de_DE.ISO-8859-1 locale");
   setlocale (LC_ALL, "de_DE.ISO-8859-1");
-  s = re_compile_pattern ("[anù]*n", 7, &regex);
+  s = re_compile_pattern ("[an\371]*n", 7, &regex);
   if (s != NULL)
     {
       puts ("re_compile_pattern return non-NULL value");