Make win32 builds always do SetEnvironmentVariable() when doing putenv().
commite855b3ceb8fe7cf9e214362871be0026c625aae0
authormha <mha>
Wed, 21 Jan 2009 10:30:02 +0000 (21 10:30 +0000)
committermha <mha>
Wed, 21 Jan 2009 10:30:02 +0000 (21 10:30 +0000)
tree208e707a3bccf86f078094af638ede591c7c610f
parentec879a04961f7a7907e7d92278b29e17e26fa04e
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.
configure
configure.in
src/backend/utils/adt/pg_locale.c
src/include/port/win32.h
src/port/win32env.c [new file with mode: 0644]
src/tools/msvc/Mkvcbuild.pm