pgsql: setlocale() on Windows doesn't work correctly if the locale name

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: setlocale() on Windows doesn't work correctly if the locale name
Date: 2011-04-15 17:56:19
Message-ID: E1QAnFj-0005jk-3Y@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

setlocale() on Windows doesn't work correctly if the locale name contains
apostrophes or dots. There isn't much hope of Microsoft fixing it any time
soon, it's been like that for ages, so we better work around it. So, map a
few common Windows locale names known to cause problems to aliases that work.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/d5a7bf8c11c8b66c822bbb1a6c90e1a14425bd6e

Modified Files
--------------
src/bin/initdb/initdb.c | 89 +++++++++++++++++++++++++++++++++++++++++++----
1 files changed, 82 insertions(+), 7 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2011-04-15 20:36:00 Re: [COMMITTERS] pgsql: Rename pg_regress option --multibyte to --encoding
Previous Message Andrew Dunstan 2011-04-15 16:28:57 Re: [COMMITTERS] pgsql: Rename pg_regress option --multibyte to --encoding

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2011-04-15 19:01:04 Broken HOT chains in system catalogs
Previous Message Radosław Smogura 2011-04-15 17:36:44 Re: MMAP Buffers