Re: OK, that's one LOCALE bug report too many... - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: OK, that's one LOCALE bug report too many...
Date
Msg-id Pine.LNX.4.21.0011252233370.1028-100000@peter.localdomain
Whole thread Raw
In response to Re: OK, that's one LOCALE bug report too many...  (Lamar Owen <lamar.owen@wgcr.org>)
Responses Re: OK, that's one LOCALE bug report too many...  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Lamar Owen writes:

> Ok, let me repeat -- the '--enable-locale' setting will not affect the
> collation sequence problem on RedHat.  If you set PostgreSQL to use
> locale, it uses it.  If you configure PostgreSQL to not use locale, the
> collation set by LANG, LC_ALL, or LC_COLLATE is _STILL_ honored, thanks
> to the libc used.

Well, I'm looking at Red Hat 7.0 here and the locale variables are most
certainly getting ignored in the default compile.  Moreover, at no point
did strncmp() in glibc behave as you claim.  You can look at it yourself
here:

http://subversions.gnu.org/cgi-bin/cvsweb/glibc/sysdeps/generic/strncmp.c

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: 7.0.2 -> 7.0.3 problem
Next
From: Tom Lane
Date:
Subject: Re: OK, that's one LOCALE bug report too many...