Re: C locale + unicode - Mailing list pgsql-general

From Tom Lane
Subject Re: C locale + unicode
Date
Msg-id 24338.1105721828@sss.pgh.pa.us
Whole thread Raw
In response to C locale + unicode  (John Sidney-Woollett <johnsw@wardbrook.com>)
Responses Re: C locale + unicode  (John Sidney-Woollett <johnsw@wardbrook.com>)
List pgsql-general
John Sidney-Woollett <johnsw@wardbrook.com> writes:
> Does anyone know if it's permitted to use the 'C' locale with a UNICODE
> encoded database in 7.4.6?

Yes.

> And will it work correctly?

For suitably small values of "correctly", sure.  Textual sort ordering
would be by byte values, which might be a bit unintuitive for Unicode
characters.  And I don't think upper()/lower() would work very nicely
for characters outside the basic ASCII set.  But AFAIR those are the
only gotchas.  People in the Far East, who tend not to care about either
of those points, use 'C' locale with various multibyte character sets
all the time.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Problem Dropping a Database with users connected to it
Next
From: Wes
Date:
Subject: Re: [HACKERS] Much Ado About COUNT(*)