Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgsql-hackers-win32pgsql-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

pgsql-patches by date

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

pgsql-hackers-win32 by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group