tests: Avoid dealing with character encoding issues on command line.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 2 Aug 2020 21:26:31 +0000 (21:26 +0000)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 2 Aug 2020 22:32:46 +0000 (22:32 +0000)
commit2485ec45d8a8a762cea1623fd46821e1a6d55630
tree03b28aecd43556b23e053885a60ca1ffcf1f4e5a
parent1979b70519e5183e7e5c346c512372dc121419fb
tests: Avoid dealing with character encoding issues on command line.

Unix-like systems don't have a command-line encoding, so we can pass
whatever bytes we want.  mingw uses some particular encoding for
command line arguments, so this screws up trying to pass UTF-8 in.  This
commit side-steps the problem by passing only ASCII characters on the
command line and making the test program decode the bytes.

This fixes several test failures under mingw.
tests/automake.mk
tests/libpspp/i18n-test.c
tests/libpspp/i18n.at