'Sort' program (from textutils-1.22-7) still does not use settings LC_* variables for right (localised) sorting. Solution is use sort from textutils-1.22d which behave correct.
Michael, do you know of such a release? I can't find it on ftp.gnu.org.
The latest dev release, 1.22f, does NOT have LC_COLLATE / strcoll code included. I just checked. So they may have taken it out since 1.22d, but the latest stuff does not have it. This will have to wait for a future release.
I try textutils-1.22h (ftp://ftp.funet.fi/pub/gnu/alpha/gnu/fetish/textutils-1.22h.tar.gz) just now. It has locale code included (as well as 1.22f version! :-) and (both) work right. $ grep LC sort.c char *s = setlocale (LC_ALL, locale); s = setlocale (LC_ALL, ""); char *current_locale_string = setlocale (LC_ALL, ""); $ grep strcol sort.c return strcoll (((const struct month *) m1)->name, diff = strcoll (s1, s2); diff = strcoll (s1, s2); diff = strcoll (copy_a, copy_b); diff = strcoll (ap, bp);
ftp://alpha.gnu.org/gnu/textutils* shows only textutils-1.22f.tar.gz -> fetish/textutils-1.22f.tar.gz It is true that in fetish there are later instances of textutils, but if the textutils maintainer thinks that even 1.22f is an alpha release and tries to hide later releases, I really do not feel comfortable overriding that decision. I have no reason to assume that he does not have valid reasons for not making that a more public release.
Michael, what is the status of this?? Are you comfortable calling the 6.0 textutils the real deal and closing this?
This will be resolved when we upgrade to a new version of textutils when it is released by the textutils author. ------- Additional Comments From 08/12/99 06:06 ------- Textutils 2.0 have benn released (1999-08-06). Hope this is final solution of 'sort & LC_COLLATE' problem. Thanks