From: | "Magnus Hagander" <mha(at)sollentuna(dot)net> |
---|---|
To: | <pgsql-patches(at)postgresql(dot)org> |
Subject: | win32 locale fixes |
Date: | 2004-05-25 21:24:59 |
Message-ID: | 6BCB9D8A16AC4241919521715F4D8BCE34BB04@algol.sollentuna.se |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-patches |
The following patch fixes locale support under win32.
* Saves and reloads LC_COLLATE and LC_CTYPE when a new backend is
execed. Also preserved in pgstat even though it's supposedly not used
there at the moment, to be on the safe side for the future. With this
patch, passes regression tests with regional settings set to != english.
* This is not necessary (see previous discussion) to do for the other
LC_xxx types. These are all set in GUC, and are handled by the routines
to save/restore all nondefault GUC varilables.
* setlocale(LC_MESSAGES,"") returns NULL on win32. And it's always
called as part of GUC setup. Patch changes code to ignore the result if
we set it to "". (Can someone confirm that this is not totally unsafe?
From what I can tell, LC_MESSAGS is only set to ""
Oh, and how do I change a locale:d system into english? Mine picks up
swedish from the environment...
After this, the only remaining regression error on win32 is the join one
(the "unimportant ordering" one)
//Magnus
Attachment | Content-Type | Size |
---|---|---|
locale_win32.patch | application/octet-stream | 4.6 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Jan Wieck | 2004-05-26 00:09:25 | Re: contrib/dbmirror typo fix |
Previous Message | Magnus Hagander | 2004-05-25 21:12:22 | Small change in link order |