mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Refix the unaccent regression test on MSVC properly
... for some value of "properly". Instead of overriding REGRESS_OPTS, set the variables ENCODING and NO_LOCALE, which is more expressive and allows overriding by the user. Fix vcregress.pl to handle that.
This commit is contained in:
@ -228,6 +228,14 @@ sub fetchRegressOpts
|
||||
# ignore anything that isn't an option staring with --
|
||||
@opts = grep { $_ !~ /\$\(/ && $_ =~ /^--/ } split(/\s+/,$1);
|
||||
}
|
||||
if ($m =~ /^\s*ENCODING\s*=\s*(\S+)/m)
|
||||
{
|
||||
push @opts, "--encoding=$1";
|
||||
}
|
||||
if ($m =~ /^\s*NO_LOCALE\s*=\s*\S+/m)
|
||||
{
|
||||
push @opts, "--no-locale";
|
||||
}
|
||||
return @opts;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user