mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-27 19:53:32 +08:00
69623c0db0
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>
9 lines
321 B
Sed
9 lines
321 B
Sed
# Future self: the vertical bar is being used here as a delimiter in
|
|
# the input file, not in the usual alternate-choice regex meaning.
|
|
/^##/d
|
|
s/^# \(.*\)/ { 0, 0, "\1", NULL, },/
|
|
s/^#W \(.*\)/ { 0, 0, NULL, "\1" },/
|
|
s/\([^|]*\)|\([^|]*\)|\([^|]*\)|\([^|]*\)|\(.*\)/ { \1, \2, "\3", "\4", \5 },/
|
|
s/\\/\\\\/g
|
|
s/
|
|
/\\r/g
|