OSDN Git Service

Make win32 builds always do SetEnvironmentVariable() when doing putenv().
authorMagnus Hagander <magnus@hagander.net>
Wed, 21 Jan 2009 10:30:02 +0000 (10:30 +0000)
committerMagnus Hagander <magnus@hagander.net>
Wed, 21 Jan 2009 10:30:02 +0000 (10:30 +0000)
commit0154345078fb96a8bbe8b8785628400b17e5a75b
tree34e581ca07428ed44cdc4f4a9d58d7df9f08a501
parentfa40ca42a6bc3da349eaf661ef9e25c0064d110d
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