DASH Shell discussions
 help / color / mirror / Atom feed
From: Matthew Burgess <matthew@linuxfromscratch.org>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: dash@vger.kernel.org
Subject: Re: Allow dash to build with i18n version of Coreutils
Date: Mon, 31 Aug 2009 8:19:24 -0600	[thread overview]
Message-ID: <f7a46234b412965ca542f8cb4e1b3f6c@quantum.linuxfromscratch.org> (raw)
In-Reply-To: <20090831102728.GA6038@gondor.apana.org.au>

On Mon, 31 Aug 2009 20:27:28 +1000, Herbert Xu <herbert@gondor.apana.org.au> wrote:

> Thank you.  I've applied the patch but replaced LC_CTYPE with
> LC_COLLATE.

Hi Herbert, for some reason, 'sort' doesn't appear to be honouring LC_COLLATE; only
LC_ALL & LC_CTYPE appears to get things working with this particular invocation of
'sort':

su-4.0$ echo $LANG 
en_GB.UTF-8

su-4.0$ sort -u -k 3,3 builtins
     0  .       -s      dotcmd

su-4.0$ LC_ALL=C sort -u -k 3,3 builtins
    21  local   -a      localcmd
    14  export  -as     exportcmd
     3  alias   -au     aliascmd
     0  .       -s      dotcmd
     4  bg      -u      bgcmd
     7  chdir   cdcmd
    10  echo    echocmd
    18  hash    hashcmd
    22  printf  printfcmd
    23  pwd     pwdcmd
     2  [       testcmd
    33  type    typecmd
    34  ulimit  ulimitcmd

su-4.0$ LC_CTYPE=C sort -u -k 3,3 builtins
    21  local   -a      localcmd
    14  export  -as     exportcmd
     3  alias   -au     aliascmd
     7  chdir   cdcmd
    10  echo    echocmd
    18  hash    hashcmd
    22  printf  printfcmd
    23  pwd     pwdcmd
     0  .       -s      dotcmd
     2  [       testcmd
    33  type    typecmd
     4  bg      -u      bgcmd
    34  ulimit  ulimitcmd

su-4.0$ LC_COLLATE=C sort -u -k 3,3 builtins
     0  .       -s      dotcmd

Regards,

Matt.


  reply	other threads:[~2009-08-31 14:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-15 18:07 Allow dash to build with i18n version of Coreutils Matthew Burgess
2009-08-31 10:27 ` Herbert Xu
2009-08-31 14:19   ` Matthew Burgess [this message]
2009-09-01  3:15     ` Herbert Xu
2009-09-01 20:27       ` Matthew Burgess

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f7a46234b412965ca542f8cb4e1b3f6c@quantum.linuxfromscratch.org \
    --to=matthew@linuxfromscratch.org \
    --cc=dash@vger.kernel.org \
    --cc=herbert@gondor.apana.org.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox