tests: Improve test for supported encodings.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 11 Feb 2012 18:16:25 +0000 (10:16 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 11 Feb 2012 18:16:36 +0000 (10:16 -0800)
commit085dfff1c41d6ee305f00aa7177286ca8965efbc
treee0ed079bb293fece6338df19eb1be395de4e41b6
parentab27e617d38c0c074ae82c9c4d715775068baf37
tests: Improve test for supported encodings.

I misunderstood the purpose for the config.charset script.  I had a
notion that it was supposed to print all of the character sets that
are supported by the operating system.  It doesn't (it prints
character set names that need translation for the operating system).

This change switches to using the same code that will be used at
PSPP runtime to determine whether an encoding is supported, for
determining during the tests whether an encoding is supported.

This should cause fewer tests to be skipped on Mac OS.

Reported-by: Jeremy Lavergne <jeremy@lavergne.gotdns.org>
tests/data/sys-file.at
tests/language/data-io/data-reader.at
tests/libpspp/encoding-guesser.at
tests/libpspp/i18n-test.c
tests/libpspp/i18n.at
tests/libpspp/u8-istream.at