This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Fwd: Bug#56195: en_US (also en_CA) do other weird things to sortorder
- To: libc-alpha at sourceware dot cygnus dot com
- Subject: Fwd: Bug#56195: en_US (also en_CA) do other weird things to sortorder
- From: Joel Klecker <espy at debian dot org>
- Date: Mon, 3 Apr 2000 08:29:19 -0700
- Cc: 56195-forwarded at bugs dot debian dot org
[ This is a forwarded report from the Debian Bug Tracking System, please
keep 56195-forwarded@bugs.debian.org in any replies ]
I'm not sure if this is "strange" sort order or not.
>Subject: Bug#56195: en_US (also en_CA) do other weird things to sort order
>Reply-To: David Huggins-Daines <dhd@linuxcare.com>, 56195@bugs.debian.org
>To: 56195@bugs.debian.org
>From: David Huggins-Daines <dhd@linuxcare.com>
>Date: 20 Mar 2000 12:25:40 -0500
>
>This also breaks things like the gawk test suite, which doesn't set
>LANG=C before running 'sort' on the output of some tests.
>
>In particular, you get odd sort orders like:
>
>[dhd@doppelbock]:~$ LANG=C
>[dhd@doppelbock]:~$ cat > testfile
>- A
>0 A
>[dhd@doppelbock]:~$ sort testfile
>- A
>0 A
>[dhd@doppelbock]:~$ LANG=en_CA
>[dhd@doppelbock]:~$ sort testfile
>0 A
>- A
>
>But look:
>
>[dhd@doppelbock]:~$ cat > testfile
>-
>0
>[dhd@doppelbock]:~$ sort testfile
>-
>0
>
>Figuring out the purpose of this is left as an exercise to the
>reader...
>
>Arguably, the blame should be laid on people who expect 'sort' to give
>consistent output without making sure LANG is set to a specified
>value.
>
>--
>David Huggins-Daines, Senior Linux Consultant, Linuxcare, Inc.
>613.562.1239 tel
>dhuggins@linuxcare.com, http://www.linuxcare.com/
>Linuxcare. Support for the revolution.
>
>
>--
>To UNSUBSCRIBE, email to debian-bugs-dist-request@lists.debian.org
>with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
--
Joel Klecker (aka Espy) <URL:mailto:espy@debian.org>
Debian Package Maintainer for the GNU C Library.