Since the first (5) and second (7) sort keys are equal, I'm expecting the differentiating factor to be the third (1) and for the file to look as it did prior to the sort; however, because thirdB's last field (8) is blank, it appears at the bottom. If I put any content in this field it sorts as expected.
I get the same results whether my locale is "C" or "en_US.ISO8859-1." Can someone explain this behavior or how to achieve the sort I'm after?
Sort Capability in the European UTF-8 Locales Does
Not Function Correctly (4307314)
The sort capability in the European UTF-8 locales does not work properly.
Workaround: Before you attempt to sort in a FIGGS UTF-8 locale, set the LC_COLLATE
variable to the ISO1 equivalent.
# echo $LC_COLLATE
> es_ES.UTF-8
# LC_COLLATE=es_ES.IS08859-1
# export LC_COLLATE
Then start sorting.
Thanks DG. One last inquiry here: How do I find a detailed description of the bug (so I can pass it onto our admins)? I tried searching bugs.sun.com with the two numbers in your link ("118824-01" and "6178339"), but I'm not getting any results. I've searched plenty of non-Sun bug sites with success; what am I missing?
Orale may have mangledthe internal searches, I used Google.
You need to go to SunSolve Home Page and download it. There may be prereq's. It'd be nicer to get the bundles of patches that follow the state of your host.
If you have an older SPARC OS around, try copying their sort over.
Or, you can find SPARC GNU coreutils out there and download it, at least as a workaround.
I find it surprising that the sort is messed up again, as I recall it being an Solaris 8 bug. I think we substituted the Solaris 7 sort for a while. Less performance, i guess, but data correct!