Skip site navigation (1) Skip section navigation (2)

Re: Gen_fmgrtab.sh fails with LANG=et_EE

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-patches(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Marko Kreen" <markokr(at)gmail(dot)com>
Subject: Re: Gen_fmgrtab.sh fails with LANG=et_EE
Date: 2006-09-05 19:06:53
Message-ID: 200609052106.54198.peter_e@gmx.net (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
Tom Lane wrote:
> "Marko Kreen" <markokr(at)gmail(dot)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/

In response to

Responses

pgsql-hackers by date

Next:From: Josh BerkusDate: 2006-09-05 19:10:05
Subject: Re: Ding-dong, contrib is dead ...
Previous:From: Tom LaneDate: 2006-09-05 19:05:03
Subject: Re: Where is hstore?

pgsql-patches by date

Next:From: Bruce MomjianDate: 2006-09-05 19:11:38
Subject: Re: XML syntax patch
Previous:From: Tom LaneDate: 2006-09-05 16:31:58
Subject: Re: ISBN/ISSN/ISMN/EAN13 module

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group