From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, ntufar(at)pisem(dot)net, pgsql-patches(at)postgresql(dot)org |
Subject: | Re: C locale sort in src/tools/make_ctags |
Date: | 2004-02-02 17:29:15 |
Message-ID: | 200402021729.i12HTF705916@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-patches |
Tom Lane wrote:
> Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> > Tom Lane wrote:
> >> I saw that, but it seemed a non-problem to me: if the variables have
> >> not been exported then they won't affect the sort program anyway.
>
> > He probably had LANG, but not LC_ALL, already exported in his
> > environment.
>
> Ah, right, that would explain it.
>
> > That's not possible, because LC_ALL overrides everything.
>
> I hadn't realized that, but you seem to be right. Okay, setting
> LC_ALL correctly should be sufficient.
OK, new code is:
LC_ALL=C
export LC_ALL
sort tags >/tmp/$$ && mv /tmp/$$ tags
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Dunstan | 2004-02-02 17:34:29 | Re: reading uninitialized buffer |
Previous Message | Bruce Momjian | 2004-02-02 17:21:12 | Re: CVS source win32 mingw some comile error |