[issue23739] locale.setlocale checks locale name for string incorrectly
Saulius Žemaitaitis added the comment: Python 2.7.9 (default, Jan 29 2015, 06:27:40) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] on darwin -- ___ Python tracker <http://bugs.python.org/issue23
[issue23739] locale.setlocale checks locale name for string incorrectly
New submission from Saulius Žemaitaitis: Steps to reproduce: python2.7 -c "import locale; locale.setlocale(locale.LC_ALL, u'en_US')" Raises: ValueError: too many values to unpack Problem lies in locale.py file from the standard library. It checks if locale is string