"Magnus Hagander" <[EMAIL PROTECTED]> writes: > Test program attached, results below. It returns NULL for > whatever I try with LC_MESSAGES.
It looks like LC_MESSAGES just plain does not work on Windows. I did some googling and found some pages suggesting this, for instance http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_setlocale.2c_._wsetlocale.asp The patch you suggest looks remarkably ugly; in particular it is generally unsafe to pass a local variable to putenv. Perhaps that does not matter on Windows but I wonder whether the putenv part couldn't just be dropped. And why bother with ZeroMemory? regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster
