bpo-34403: Fix test_utf8_mode.test_cmd_line() on HP-UX by vstinner · Pull Request #8967 · python/cpython
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters