sort issues in solaris 10 based on Locale settings

Hi All -

When Locale is set to en_GB.ISO8859-1 and sort done, the output does not match the sort done on the same file with Locale set to en_US.ISO8859-1. Please note that both are using the ISO8859-1 char set. Why is the difference?

Your input will greatly help.

Thanks in advance

[306 byte] By [ledzepa] at [2007-11-27 7:43:08]
# 1

Different locales have different sort orders, the sort order used will be determined by the LC_COLLATE environment variable.

One example of this is given in the sort manpage;

If LC_COLLATE is set to C, sorting will be in ASCII order.

If LC_COLLATE is set to en_US, sorting is case insensitive

except when the two strings are otherwise equal and one has

an uppercase letter earlier than the other.

mAbrantea at 2007-7-12 19:23:56 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2
Hi Thanks for your reply. Do you know what is the sort order for en_GB? en_US is as listed in your reply. Thanks again
ledzepa at 2007-7-12 19:23:56 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 3

Not exactly, the locales are defined in /usr/lib/localedef/src/locales/en_US.ISO8859-1.src.bz2 and /usr/lib/localedef/src/locales/en_GB.ISO8859-1.src.bz2, but they aren't exactly human readable, but if you look at the LC_COLLATE sections of these files you will notice that they are somewhat different.

hope this helps :)

.7/M.

mAbrantea at 2007-7-12 19:23:56 > top of Java-index,Solaris Operating System,Solaris 10 Features...