Wrap getpreferredencoding()'s use of setlocale in a try/except to prevent
us from raising an exception when the locale is invalid. Issue #1443504
Showing
Please register or sign in to comment
us from raising an exception when the locale is invalid. Issue #1443504