Re: Encoding and i18n - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Encoding and i18n
Date
Msg-id 200710081241.42433.peter_e@gmx.net
Whole thread Raw
In response to Re: Encoding and i18n  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Am Samstag, 6. Oktober 2007 schrieb Tom Lane:
> It's not real clear to me whether, on a Unix machine, there is even
> supposed to be any difference between setting LC_TIME=es_ES.iso88591 and
> setting it to es_ES.utf8.  Since nl_langinfo(CODESET) is supposedly
> determined only by LC_CTYPE, you could argue that strftime's results
> should be in that encoding regardless, and that the codeset component of
> other LC_ variables should be ignored.  Some experimentation suggests
> that at least in glibc it doesn't work that way, and that there is in
> fact no principled way for you to find out what encoding strftime is
> giving you :-(.

It might be useful to research whether that behavior is following the spec 
(POSIX or whatever).

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


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Encoding and i18n
Next
From: "Heikki Linnakangas"
Date:
Subject: Re: Including Snapshot Info with Indexes