[PATCHES] Win32 NLS

2004-10-17 Thread Magnus Hagander
Hi! Working the NLS stuff on win32. Considering I know very little about this part (don't use it myself, never coded around in it), perhaps someone else can shed some light? PostgreSQL responds correctly to whatever the LC_MESSAGES environment variable is set to upon startup of postgresql - I

Re: [PATCHES] Win32 NLS

2004-10-17 Thread Peter Eisentraut
Magnus Hagander wrote: Which appears to suggest that we should change the locale using putenv() etc, and not using setlocale() at all... Because setlocale() does not support LC_MESSAGES, probably. This cannot possibly work. putenv() doesn't change any locale. The environment variables only

Re: [PATCHES] Win32 NLS

2004-10-17 Thread Magnus Hagander
Which appears to suggest that we should change the locale using putenv() etc, and not using setlocale() at all... Because setlocale() does not support LC_MESSAGES, probably. This cannot possibly work. putenv() doesn't change any locale. The environment variables only serve as a default when

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

[PATCHES] windows progname / regression fixes

2004-10-17 Thread Andrew Dunstan
Attached are 2 patches and one additional alternative contrib regression test file (for cube). The patches fix a misleading message in pg_regress.sh, and strip the .exe suffix from the result of get_progname() as previously discussed. This lets us get much further with contrib regression tests

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

Re: [PATCHES]Update postgres-zh_TW.po for 8.0

2004-10-17 Thread Peter Eisentraut
Zhenbang Wei wrote: This time msgfmt says ok. Thanks. Installed. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 9: the planner will ignore your desire to choose an index scan if your joining

Re: [PATCHES] (Turkish)New translation: pg_config

2004-10-17 Thread Peter Eisentraut
Devrim GUNDUZ wrote: http://www.gunduz.org/postgresql/translation/PostgreSQL-8.0/pg_config -tr.pot Could you please apply it? Done. Btw., you have the file names wrong. The translated files should have a .po extension. .pot is an untranslated PO template. -- Peter Eisentraut

Re: [PATCHES] (Turkish)New translation: pg_config

2004-10-17 Thread Devrim GUNDUZ
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, On Sun, 17 Oct 2004, Peter Eisentraut wrote: Btw., you have the file names wrong. The translated files should have a .po extension. .pot is an untranslated PO template. Ok, thanks. I've updated them on my side and my cvs server. Regards, - --

[PATCHES] additional GCC warning flags

2004-10-17 Thread Neil Conway
This patch adds code to configure to check if GCC supports the following warning flags: -Wdeclaration-after-statement (GCC 3.4+), -Wold-style-definition (GCC 3.4+), and -Wendif-labels (GCC 3.3+). Any of these options that are supported by $CC are added to $CFLAGS. The patch also removes