2008-03-21 14:23:29 +01:00
|
|
|
$PostgreSQL: pgsql/src/test/locale/README,v 1.6 2008/03/21 13:23:29 momjian Exp $
|
|
|
|
|
|
|
|
Locales
|
|
|
|
=======
|
1998-06-16 08:42:02 +02:00
|
|
|
|
2001-01-19 20:43:27 +01:00
|
|
|
This directory contains a set of tests for locales. I provided one C
|
|
|
|
program test-ctype.c to test CTYPE support in libc and the installed
|
|
|
|
locale data. Then there are test-sort.pl and test-sort.py that test
|
|
|
|
collating.
|
1998-06-16 08:42:02 +02:00
|
|
|
|
2001-01-19 20:43:27 +01:00
|
|
|
To run a test for some locale run
|
|
|
|
gmake check-$locale
|
|
|
|
for example
|
|
|
|
gmake check-koi8-r
|
1998-06-16 08:42:02 +02:00
|
|
|
|
2001-01-19 20:43:27 +01:00
|
|
|
Currently, there are only tests for a few locales available. The script
|
2002-09-03 23:45:44 +02:00
|
|
|
'runall' calls test-ctype to test libc and locale data, test-sort.pl
|
|
|
|
(uncomment test-sort.py, if you have a Python interpreter installed), and
|
|
|
|
does tests on PostgreSQL with the provided SQL script files.
|
1998-06-16 08:42:02 +02:00
|
|
|
|
2001-01-19 20:43:27 +01:00
|
|
|
To add locale tests one needs to create a directory $locale and create
|
|
|
|
a Makefile (and other files) similar to koi8-r/*. Actually, the simplest
|
|
|
|
(I think) method is just to copy the koi8-r directory and edit/replace
|
|
|
|
the files.
|
1998-06-16 08:42:02 +02:00
|
|
|
|
|
|
|
Oleg.
|
|
|
|
----
|
1999-03-29 11:00:19 +02:00
|
|
|
Oleg Broytmann http://members.xoom.com/phd2/ phd2@earthling.net
|