From: Paul Eggert Date: Wed, 3 Jan 2018 19:02:17 +0000 (-0800) Subject: tr: add -A, for compatibility with AIX tr X-Git-Tag: v8.30~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f9b1b86b18777b996c81d40c64e1e3ede8ecbef;p=thirdparty%2Fcoreutils.git tr: add -A, for compatibility with AIX tr Problem reported by Michael (Bug#29946). * src/tr.c (main): Add undocumented -A option. --- diff --git a/src/tr.c b/src/tr.c index 4f407f4b18..ae05192dc9 100644 --- a/src/tr.c +++ b/src/tr.c @@ -1705,10 +1705,16 @@ main (int argc, char **argv) atexit (close_stdout); - while ((c = getopt_long (argc, argv, "+cCdst", long_options, NULL)) != -1) + while ((c = getopt_long (argc, argv, "+AcCdst", long_options, NULL)) != -1) { switch (c) { + case 'A': + /* Undocumented option, for compatibility with AIX. */ + setlocale (LC_COLLATE, "C"); + setlocale (LC_CTYPE, "C"); + break; + case 'c': case 'C': complement = true;