Re: sort -m and locale?
- From: stan <smoore@xxxxxxxx>
- Date: Tue, 25 Mar 2008 19:45:11 -0500
Folks, I ran this one to ground. Turns out it's a Suse 10.0 problem.
During one of the updates as someone changed some code to fix a security
problem they messed up the month code in sort. The program reads the
lines properly and then forces the month to all upper case befroe
comparing. So far everything is wonderful. Then the code reads the
months from the system using the locale information. Again everyting is
wonderful; sort of. The months from the system are in upper and lower
case so they must be converted to all uppper case before the comparison.
WHoever changed the code didn't handle that part so the comarison was
from an all uppercase (JAN) to a mixed case (Jan). That caused the
comparison to return bogus information and the sort was incorrect.
I actualy patched the code and now my sort works like everyone elses.
In the end I put up a red herring for everyone to follow with the locale
issue and most of us went right down that path. This had nothing to do
with locales other than a tired programmer was up working when he/she
shold have been located in bed getting some rest.
.
- References:
- sort -m and locale?
- From: stan
- Re: sort -m and locale?
- From: Maxwell Lol
- Re: sort -m and locale?
- From: Doug Miller
- Re: sort -m and locale?
- From: Maxwell Lol
- Re: sort -m and locale?
- From: Maxwell Lol
- Re: sort -m and locale?
- From: stan
- sort -m and locale?
- Prev by Date: Re: do it all with grep and ls or is there another option
- Next by Date: Re: do it all with grep and ls or is there another option
- Previous by thread: Re: sort -m and locale?
- Next by thread: Re: sort -m and locale?
- Index(es):
Relevant Pages
|