Re: [PATCHES] Win32 & NLS
- From: Peter Eisentraut <peter_e(at)gmx(dot)net>
- To: "Magnus Hagander" <mha(at)sollentuna(dot)net>, <pgsql-hackers-win32(at)postgresql(dot)org>, "pgsql-patches" <pgsql-patches(at)postgresql(dot)org>
- Subject: Re: [PATCHES] Win32 & NLS
- Date: Sun, 17 Oct 2004 17:47:19 +0200
- Message-id: <200410171747(dot)19662(dot)peter_e(at)gmx(dot)net>
Magnus Hagander wrote:
> Which appears to suggest that we should change the locale using
> putenv() etc, and not using setlocale() at all... Because setlocale()
> does not support LC_MESSAGES, probably.
This cannot possibly work. putenv() doesn't change any locale. The
environment variables only serve as a default when you call setlocale()
without an actual locale value. But to enable any locale, you always
need to call setlocale() somehow, somewhere.
--
Peter Eisentraut
http://developer.postgresql.org/~petere/
Home |
Main Index |
Thread Index