Re: Win32 & NLS - Mailing list pgsql-patches

From Peter Eisentraut
Subject Re: Win32 & NLS
Date
Msg-id 200410171747.19662.peter_e@gmx.net
Whole thread Raw
In response to Win32 & NLS  ("Magnus Hagander" <mha@sollentuna.net>)
List 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/


pgsql-patches by date:

Previous
From: "Magnus Hagander"
Date:
Subject: Win32 & NLS
Next
From: "Magnus Hagander"
Date:
Subject: Re: Win32 & NLS