This should be easy to fix, a check for "/" in the locale name should suffice. Wondering whether Python should be fixed as well / instead though, such that locale._parselocale() does not consider ("/tmp/a.") a valid locale with language /tmp/a and region None.
This should be easy to fix, a check for "/" in the locale name should suffice. Wondering whether Python should be fixed as well / instead though, such that locale. _parselocale( ) does not consider ("/tmp/a.") a valid locale with language /tmp/a and region None.