Re: Re: [COMMITTERS] pgsql: setlocale() on Windows doesn't work correctly if the locale name
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Hiroshi Inoue <inoue@tpf.co.jp>
Cc: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>, Andrew Dunstan <andrew@dunslane.net>, pgsql-hackers@postgresql.org
Date: 2011-04-20T13:38:27Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
setlocale() on Windows doesn't work correctly if the locale name contains
- d5a7bf8c11c8 9.1.0 cited
Hiroshi Inoue <inoue@tpf.co.jp> writes: > I see another issue for the behavior. > For example, the following code in src/backend/utis/adt/pg_locale.c > won't work as expected in case the current locale is Hong Kong, Macao or > UAE because the last setlocale() in the code would fail. I can > find such save & restore operations of locales in several places. Well, if Windows' setlocale is too brain-dead to accept its own output, there's nothing to be done about it except to file a bug with Microsoft. There isn't anything in the POSIX API that would let us avoid using setlocale with a previous result value to restore the previous setting. regards, tom lane