Re: C locale sort in src/tools/make_ctags

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: C locale sort in src/tools/make_ctags
Дата
Msg-id 200402021729.i12HTF705916@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: C locale sort in src/tools/make_ctags  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
Tom Lane wrote:
> Peter Eisentraut <peter_e@gmx.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@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

В списке pgsql-patches по дате отправления:

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: reading uninitialized buffer
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: reading uninitialized buffer