Bug 863 - sort does not use LC_COLLATE settings
sort does not use LC_COLLATE settings
Status: CLOSED DEFERRED
Product: Red Hat Linux
Classification: Retired
Component: textutils (Show other bugs)
5.2
All Linux
low Severity low
: ---
: ---
Assigned To: Michael K. Johnson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-01-18 07:14 EST by michael
Modified: 2008-05-01 11:37 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-07-13 12:20:28 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description michael 1999-01-18 07:14:37 EST
'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.
Comment 1 Preston Brown 1999-03-22 14:58:59 EST
Michael, do you know of such a release?  I can't find it on
ftp.gnu.org.
Comment 2 Preston Brown 1999-03-22 15:15:59 EST
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.
Comment 3 michael 1999-03-23 07:02:59 EST
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);
Comment 4 Michael K. Johnson 1999-03-23 10:58:59 EST
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.
Comment 5 Jay Turner 1999-06-29 13:31:59 EDT
Michael, what is the status of this??  Are you comfortable calling the
6.0 textutils the real deal and closing this?
Comment 6 Michael K. Johnson 1999-07-13 12:20:59 EDT
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

Note You need to log in before you can comment on or make changes to this bug.