Re: [PATCHES] [pgsql-hackers-win32] Win32 NLS

2004-10-17 Thread Tom Lane
Magnus Hagander [EMAIL PROTECTED] writes: Tried that too. Tried a whole lot of combinations of both unix style (sv_SE, sv, se, se_sv for example) and windows style (Swedish.Sweden, Sweden.Swedish, Swedish.Sweden.1252, etc etc). *it never works*. It *does work* if I set it as an environment

Re: [PATCHES] [pgsql-hackers-win32] Win32 NLS

2004-10-17 Thread Tom Lane
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

Re: [PATCHES] [pgsql-hackers-win32] Win32 NLS

2004-10-17 Thread Magnus Hagander
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-u

Re: [PATCHES] [pgsql-hackers-win32] Win32 NLS

2004-10-17 Thread Tom Lane
Magnus Hagander [EMAIL PROTECTED] writes: Attached is a patch with adds a environment variable based version of locale_messages_assign(). It's not a pretty solution, but I think it's probably necessary. Applied with minor cleanup. I'm still concerned about the order-of-operations issue, but