From 69623c0db0a540f26ee537bae09446d3dcdf1f80 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Wed, 1 Sep 2021 13:17:34 -0400 Subject: 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 --- posix/bug-regex1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'posix/bug-regex1.c') 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, ®ex); + s = re_compile_pattern ("[an\371]*n", 7, ®ex); 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, ®ex); + s = re_compile_pattern ("[an\371]*n", 7, ®ex); if (s != NULL) { puts ("re_compile_pattern return non-NULL value"); -- cgit v1.2.3-70-g09d2