Regarding the encoding/locale matching issue, here's another test 
routine I would like you to run if you want to see your operating 
system supported.  It reflects more accurately the actual 
implementation I'm working on.

Compile the attached test program and then run

for x in `locale -a`; do LC_ALL=$x ./test; done | sort -u

If you don't have a locale command, maybe something like this will work:

for x in `ls /usr/share/locale`; do LC_ALL=`basename $x` ./test; done | 
sort -u

I already have Linux and FreeBSD covered.  Thanks.

(If the program doesn't compile or misbehaves, that would be useful 
information as well.)

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/
#include <stdio.h>
#include <locale.h>
#include <nl_types.h>
#include <langinfo.h>

int
main(int argc, char *argv[])
{
	char *foo;

	setlocale(LC_ALL, "");

	foo = nl_langinfo(CODESET);
	printf("%s\n", foo);

	return 0;
}
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

               http://archives.postgresql.org

Reply via email to