mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-11 19:20:40 +08:00
Fix the new SASLprep tests to work with non-UTF-8 locales.
Fix by forcing database encoding to UTF-8, regardless of the current locale. Pointed out by Tom Lane. Discussion: https://www.postgresql.org/message-id/8934.1491614631@sss.pgh.pa.us
This commit is contained in:
parent
f0e44021df
commit
9025af3ed0
@ -42,9 +42,10 @@ SKIP:
|
||||
{
|
||||
skip "authentication tests cannot run on Windows", 12 if ($windows_os);
|
||||
|
||||
# Initialize master node
|
||||
# Initialize master node. Force UTF-8 encoding, so that we can use non-ASCII
|
||||
# characters in the passwords below.
|
||||
my $node = get_new_node('master');
|
||||
$node->init;
|
||||
$node->init(extra => ['--locale=C', '--encoding=UTF8']);
|
||||
$node->start;
|
||||
|
||||
# These tests are based on the example strings from RFC4013.txt,
|
||||
|
Loading…
Reference in New Issue
Block a user