Re: [GENERAL] Re: [GENERAL] Re: [GENERAL] Re: [GENERAL] Different encoding for string values and identifier strings? Or (select 'tést' as tést) returns different values for string and identifier...

From: "Francisco Figueiredo Jr(dot)" <francisco(at)npgsql(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>, pgsql-general(at)postgresql(dot)org, francisco(at)npgsql(dot)org
Subject: Re: [GENERAL] Re: [GENERAL] Re: [GENERAL] Re: [GENERAL] Different encoding for string values and identifier strings? Or (select 'tést' as tést) returns different values for string and identifier...
Date: 2011-03-19 01:47:21
Message-ID: AANLkTintX26YzpsS+b-Aqt4epZgQk7JrhCyCwLFkgakz@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hmmmmm,

I'm using osx 10.6.6 and I compiled PG myself from source. Is there any
configure option or any library I may use to get the correct behavior? Is
there any runtime setting I can make to change this tolower() behavior,
maybe skip the call?

Thanks in advance.

--
Sent from my Android phone

Francisco Figueiredo Jr.
Npgsql lead developer
fxjr.blogspot.com
twitter.com/franciscojunior
Em 18/03/2011 22:01, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> escreveu:
> "Francisco Figueiredo Jr." <francisco(at)npgsql(dot)org> writes:
>> My database has encoding set to UTF-8 although my lc_collate is
pt.BR.UTF-8
>> this lc setting my have cause some trouble?
>
> Hmmm ... actually, it strikes me that this may be a downcasing problem.
> PG will try to feed an unquoted identifier through tolower(), and that
> basically can't work on multibyte characters. Most implementations of
> tolower() are smart enough to not change high-bit-set bytes in UTF8
> locales, but maybe your platform's is not ...
>
> regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alban Hertroys 2011-03-19 10:18:32 Re: Insert value input syntax of an array of types without ARRAY/ROW nor casting?
Previous Message Stefan Keller 2011-03-19 01:33:10 Insert value input syntax of an array of types without ARRAY/ROW nor casting?