On Fri, 6 Nov 2015 06:10:57 -0600, Bill Godfrey wrote: > >Try setting LC_COLLATE=S370 or SAA > Looks good experimenting from shell command line:
user@OS/390.24.00: locale LANG=C LC_CTYPE="C" LC_COLLATE="C" LC_TIME="C" LC_NUMERIC="C" LC_MONETARY="C" LC_MESSAGES="C" LC_SYNTAX="C" LC_TOD="C" LC_ALL= user@OS/390.24.00: echo "B^J2^Jb^JA^J1^Ja" | sort 1 2 A B a b user@OS/390.24.00: echo "B^J2^Jb^JA^J1^Ja" | LC_ALL=S370 sort a b A B 1 2 user@OS/390.24.00: (Use "locale -a" to display available locale settings.) But: user@OS/390.24.00: echo "B^J2^Jb^JA^J1^Ja" | LC_ALL=en_US sort 1 2 A B a b user@OS/390.24.00: echo "B^J2^Jb^JA^J1^Ja" | LC_ALL=en_CA sort 1 2 a A b B user@OS/390.24.00: ... Why is the result for en_US so radically different from en_CA? I believe the en_US is wrong. -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
