Re: [COMMITTERS] pgsql: Rename pg_regress option --multibyte to --encoding

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [COMMITTERS] pgsql: Rename pg_regress option --multibyte to --encoding
Date: 2011-04-15 16:28:57
Message-ID: 4DA87249.6090403@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On 04/15/2011 11:18 AM, Tom Lane wrote:
> Peter Eisentraut<peter_e(at)gmx(dot)net> writes:
>> Rename pg_regress option --multibyte to --encoding
>> Also refactor things a little bit so that the same methods for setting
>> test locale and encoding can be used everywhere.
> The buildfarm shows that this patch fails on Windows --- the
> contrib/unaccent regression test is getting run in SQL_ASCII encoding
> rather than the UTF8 encoding it's supposed to have. It looks like
> the reason is that fetchRegressOpts in vcregress.pl is only looking
> for REGRESS_OPTS in the Makefile, and what you've done requires it
> to have a great deal more knowledge than that. I'm not sure what the
> least painful fix is, but maybe we should reconsider the idea of not
> using REGRESS_OPTS there.

Yeah, what is the point of this?:

-# Adjust REGRESS_OPTS because we need a UTF8 database
-REGRESS_OPTS = --dbname=$(CONTRIB_TESTDB) --multibyte=UTF8 --no-locale
+# We need a UTF8 database +ENCODING = UTF8 +NO_LOCALE = 1

Wouldn't it have worked just to change the way we spelled the option
name in the REGRESS_OPTS line?

cheers

andrew

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2011-04-15 17:56:19 pgsql: setlocale() on Windows doesn't work correctly if the locale name
Previous Message Tom Lane 2011-04-15 15:18:00 Re: [COMMITTERS] pgsql: Rename pg_regress option --multibyte to --encoding

Browse pgsql-hackers by date

  From Date Subject
Next Message Joshua Berkus 2011-04-15 16:55:04 Re: MMAP Buffers
Previous Message Noah Misch 2011-04-15 15:58:30 Re: pg_dump --binary-upgrade vs. ALTER TYPE ... DROP ATTRIBUTE