Unix Technical Forum

Re: [pgsql-hackers-win32] UNICODE/UTF-8 on win32

This is a discussion on Re: [pgsql-hackers-win32] UNICODE/UTF-8 on win32 within the pgsql Hackers forums, part of the PostgreSQL category; --> > On HPUX 10.20, mbstowcs seems to treat all byte values as > single-byte characters in C locale, so ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-11-2008, 03:52 AM
John Hansen
 
Posts: n/a
Default Re: [pgsql-hackers-win32] UNICODE/UTF-8 on win32

> On HPUX 10.20, mbstowcs seems to treat all byte values as
> single-byte characters in C locale, so my sample-of-one says
> that it works everywhere ;-).


Right, so for the sample SQL I sent earlier, the result would be the same as the input?
That's hardly a working upper/lower....

If a character doesn't have case then fine, but one that does, should at least produce a warning if it cannot be converted.


.... John

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-11-2008, 03:52 AM
Tom Lane
 
Posts: n/a
Default Re: [pgsql-hackers-win32] UNICODE/UTF-8 on win32

"John Hansen" <john@geeknet.com.au> writes:
> Right, so for the sample SQL I sent earlier, the result would be the same as the input?
> That's hardly a working upper/lower....


[ shrug... ] It works per the locale definition, which is that only
7-bit-ASCII a-z/A-Z get converted.

The bottom line here is that we rely on the locale setting for this
behavior, and that's not likely to change real soon. If you dislike
the locale definition then you should be using a different locale.
In particular I think the issue here is really that your platform's
definition of "C locale" says that bytes above x7F are illegal
characters. My platform's doesn't. The thing to be changing is the
locale definition.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:28 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com