bpo-34403: Fix test_utf8_mode.test_cmd_line() on HP-UX by vstinner · Pull Request #8967 · python/cpython

@vstinner

Make the test more generic: instead of hardcoding the encoding, get
the locale encoding at runtime, and then make sure that the command
line is properly decoded from the locale encoding.

Test also that the UTF-8 Mode decodes command line arguments from
UTF-8 with the C locale.