OSDN Git Service

Adjust comments about collate.linux.utf8 regression test.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 23 Apr 2011 16:51:47 +0000 (12:51 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 23 Apr 2011 16:51:47 +0000 (12:51 -0400)
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.

doc/src/sgml/regress.sgml
src/test/regress/expected/collate.linux.utf8.out
src/test/regress/sql/collate.linux.utf8.sql

index bb5f577..60250bb 100644 (file)
@@ -254,7 +254,7 @@ gmake check EXTRA_TESTS=numeric_big
 gmake check EXTRA_TESTS=collate.linux.utf8 LANG=en_US.utf8
 </screen>
     The <literal>collate.linux.utf8</> test works only on Linux/glibc
-    platforms, and only when run in a locale that uses UTF-8 encoding.
+    platforms, and only when run in a database that uses UTF-8 encoding.
    </para>
   </sect2>
   </sect1>
index 9813b68..c065ae9 100644 (file)
@@ -1,6 +1,7 @@
 /*
  * This test is for Linux/glibc systems and assumes that a full set of
- * locales is installed.  It must be run in a UTF-8 locale.
+ * locales is installed.  It must be run in a database with UTF-8 encoding,
+ * because other encodings don't support all the characters used.
  */
 SET client_encoding TO UTF8;
 CREATE TABLE collate_test1 (
index dfb10e4..e16d96a 100644 (file)
@@ -1,6 +1,7 @@
 /*
  * This test is for Linux/glibc systems and assumes that a full set of
- * locales is installed.  It must be run in a UTF-8 locale.
+ * locales is installed.  It must be run in a database with UTF-8 encoding,
+ * because other encodings don't support all the characters used.
  */
 
 SET client_encoding TO UTF8;