Re: Gen_fmgrtab.sh fails with LANG=et_EE

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Gen_fmgrtab.sh fails with LANG=et_EE
Дата
Msg-id 200609052106.54198.peter_e@gmx.net
обсуждение исходный текст
Ответ на Re: Gen_fmgrtab.sh fails with LANG=et_EE  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [HACKERS] Gen_fmgrtab.sh fails with LANG=et_EE  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
Tom Lane wrote:
> "Marko Kreen" <markokr@gmail.com> writes:
> > I grepped around source and did not find other instances of this.
> > The A-Z experssion was only in perl scripts or in configure and
> > configure should be fine as it explicitly resets locale.
>
> Why not do the same in Gen_fmgrtab.sh?  A quick LANG=C seems less
> invasive than this.

Well, the line of code is

cpp_define=`echo $OIDSFILE | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | sed -e 's/[^A-Z]/_/g'`

so it ought to be pretty obvious what the correct solution for the
problem "character ranges are locale-dependent" is.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Gen_fmgrtab.sh fails with LANG=et_EE
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: XML syntax patch