pgsql: Make win32 builds always do SetEnvironmentVariable() when doing

From: mha(at)postgresql(dot)org (Magnus Hagander)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Make win32 builds always do SetEnvironmentVariable() when doing
Date: 2009-01-21 10:30:02
Message-ID: 20090121103002.D76257559ED@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Make win32 builds always do SetEnvironmentVariable() when doing putenv().
Also, if linked against other versions than the default MSVCRT library
(for example the MSVC build which links against MSVCRT80), also update
the cache in the default MSVCRT at the same time.

This should fix the issues with setting LC_MESSAGES on the MSVC build.

Original patch from Hiroshi Inoue and Hiroshi Saito, much rewritten
by me.

Modified Files:
--------------
pgsql:
configure (r1.628 -> r1.629)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/configure?r1=1.628&r2=1.629)
configure.in (r1.587 -> r1.588)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/configure.in?r1=1.587&r2=1.588)
pgsql/src/backend/utils/adt:
pg_locale.c (r1.45 -> r1.46)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/pg_locale.c?r1=1.45&r2=1.46)
pgsql/src/include/port:
win32.h (r1.85 -> r1.86)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/port/win32.h?r1=1.85&r2=1.86)
pgsql/src/tools/msvc:
Mkvcbuild.pm (r1.35 -> r1.36)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/tools/msvc/Mkvcbuild.pm?r1=1.35&r2=1.36)

Added Files:
-----------
pgsql/src/port:
win32env.c (r1.1)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/port/win32env.c?rev=1.1&content-type=text/x-cvsweb-markup)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2009-01-21 11:02:41 pgsql: Add new SPI_OK_REWRITTEN return code to SPI_execute and friends,
Previous Message Magnus Hagander 2009-01-21 09:28:27 pgsql: Make some strings translatable again that were accidentally