Re: Gen_fmgrtab.sh fails with LANG=et_EE - Mailing list pgsql-patches

From Peter Eisentraut
Subject Re: Gen_fmgrtab.sh fails with LANG=et_EE
Date
Msg-id 200609052106.54198.peter_e@gmx.net
Whole thread Raw
In response to Re: Gen_fmgrtab.sh fails with LANG=et_EE  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [HACKERS] Gen_fmgrtab.sh fails with LANG=et_EE  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: Gen_fmgrtab.sh fails with LANG=et_EE
Next
From: Bruce Momjian
Date:
Subject: Re: XML syntax patch