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

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

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

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group