tests: More 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:48:27 +0000 (22:48 +0000)
commitcd1c414d08fcfa3ff569a9d29611e6db041a6afb
tree07d4cd324e7c9d7dfea8c35e78c54d7eb8ec5859
parentc3fc1e299a9ca00c6328735301fe47408c625fd2
tests: More 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/language/lexer/command-name-test.c
tests/language/lexer/command-name.at