Skip to content

Commit 1abd146

Browse files
committed
Adjust comments about collate.linux.utf8 regression test.
This test should now work in any database with UTF8 encoding, regardless of the database's default locale. The former restriction was really "doesn't work if default locale is C", and that was because of not handling mbstowcs/wcstombs correctly.
1 parent 2ab0796 commit 1abd146

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

doc/src/sgml/regress.sgml

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ gmake check EXTRA_TESTS=numeric_big
254254
gmake check EXTRA_TESTS=collate.linux.utf8 LANG=en_US.utf8
255255
</screen>
256256
The <literal>collate.linux.utf8</> test works only on Linux/glibc
257-
platforms, and only when run in a locale that uses UTF-8 encoding.
257+
platforms, and only when run in a database that uses UTF-8 encoding.
258258
</para>
259259
</sect2>
260260
</sect1>

src/test/regress/expected/collate.linux.utf8.out

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/*
22
* This test is for Linux/glibc systems and assumes that a full set of
3-
* locales is installed. It must be run in a UTF-8 locale.
3+
* locales is installed. It must be run in a database with UTF-8 encoding,
4+
* because other encodings don't support all the characters used.
45
*/
56
SET client_encoding TO UTF8;
67
CREATE TABLE collate_test1 (

src/test/regress/sql/collate.linux.utf8.sql

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/*
22
* This test is for Linux/glibc systems and assumes that a full set of
3-
* locales is installed. It must be run in a UTF-8 locale.
3+
* locales is installed. It must be run in a database with UTF-8 encoding,
4+
* because other encodings don't support all the characters used.
45
*/
56

67
SET client_encoding TO UTF8;

0 commit comments

Comments
 (0)