postgresql/src/test/locale
Andrew Dunstan 53972b460c Add $PostgreSQL$ markers to a lot of files that were missing them.
This particular batch was just for *.c and *.h file.

The changes were made with the following 2 commands:

find . \( \( -name 'libstemmer' -o -name 'expected' -o -name 'ppport.h' \) -prune \) -o  \( -name '*.[ch]'  \) \( -exec grep -q '\$PostgreSQL' {} \; -o -print \) | while read file ; do head -n 1 < $file | grep -q '^/\*' && echo $file; done | xargs -l sed -i -e '1s/^\// /' -e '1i/*\n * $PostgreSQL:$ \n *'

find . \( \( -name 'libstemmer' -o -name 'expected' -o -name 'ppport.h' \) -prune \) -o  \( -name '*.[ch]'  \) \( -exec grep -q '\$PostgreSQL' {} \; -o -print \) | xargs -l sed -i -e '1i/*\n * $PostgreSQL:$ \n */'
2008-05-17 01:28:26 +00:00
..
de_DE.ISO8859-1 More README src cleanups. 2008-03-21 13:23:29 +00:00
gr_GR.ISO8859-7 More README src cleanups. 2008-03-21 13:23:29 +00:00
koi8-r Catch all errors in for and while loops in makefiles. Don't ignore any 2008-03-18 16:24:50 +00:00
koi8-to-win1251 More README src cleanups. 2008-03-21 13:23:29 +00:00
Makefile Catch all errors in for and while loops in makefiles. Don't ignore any 2008-03-18 16:24:50 +00:00
README More README src cleanups. 2008-03-21 13:23:29 +00:00
sort-test.pl Change 2001-01-19 19:06:48 +00:00
sort-test.py Change 2001-01-19 18:35:40 +00:00
test-ctype.c Add $PostgreSQL$ markers to a lot of files that were missing them. 2008-05-17 01:28:26 +00:00

$PostgreSQL: pgsql/src/test/locale/README,v 1.6 2008/03/21 13:23:29 momjian Exp $

Locales
=======

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.

To run a test for some locale run
    gmake check-$locale
for example
    gmake check-koi8-r

Currently, there are only tests for a few locales available.  The script
'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.

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.

Oleg.
---- 
    Oleg Broytmann     http://members.xoom.com/phd2/     phd2@earthling.net