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,

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/e

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 http://msdn.microsoft

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

2004-10-17 Thread Magnus Hagander
>Magnus, can you try a quick standalone test program to see if Windows' >setlocale seems to act that way? The FAQ you pointed at implies that >GNU gettext has some issues in this area, but it doesn't say outright >that the setlocale function itself fails. Yup, still doesn't seem to work. Assuming

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 environm

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

2004-10-17 Thread Magnus Hagander
>> However, postgresql.conf does not load with the error message: >> FATAL: invalid value for parameter "lc_messages": "EN" > >That's because "en" isn't a legal locale spec. "en_US", for instance, >would be valid. (At least on most platforms ... maybe Windoze >is out in >left field?) Tried tha

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

2004-10-17 Thread Tom Lane
"Magnus Hagander" <[EMAIL PROTECTED]> writes: > However, postgresql.conf does not load with the error message: > FATAL: invalid value for parameter "lc_messages": "EN" That's because "en" isn't a legal locale spec. "en_US", for instance, would be valid. (At least on most platforms ... maybe Win