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)
commit1158983bb029084659ab87eab860af0bf10fe8a7
treec94df6636b9c0fe8055d87469c04e40f176941a5
parent3312cfb411b5ee930e9fb1c9ba2d409cb552b831
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