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: 2004-10-17 15:47:19
Message-ID: 200410171747.19662.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers-win32 pgsql-patches

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/

In response to

  • Win32 & NLS at 2004-10-17 15:31:32 from Magnus Hagander

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Magnus Hagander 2004-10-17 16:16:22 Re: [PATCHES] Win32 & NLS
Previous Message Magnus Hagander 2004-10-17 15:31:32 Win32 & NLS

Browse pgsql-patches by date

  From Date Subject
Next Message Magnus Hagander 2004-10-17 16:16:22 Re: [PATCHES] Win32 & NLS
Previous Message Magnus Hagander 2004-10-17 15:31:32 Win32 & NLS