MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / getdefaultlocale

Function getdefaultlocale

Lib/locale.py:461–511  ·  view source on GitHub ↗

Tries to determine the default locale settings and returns them as tuple (language code, encoding). According to POSIX, a program which has not called setlocale(LC_ALL, "") runs using the portable 'C' locale. Calling setlocale(LC_ALL, "") lets it use the default loc

(envvars=('LC_ALL', 'LC_CTYPE', 'LANG', 'LANGUAGE'))

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

resetlocaleFunction · 0.85
getpreferredencodingFunction · 0.85
_print_localeFunction · 0.85

Calls 4

_parse_localenameFunction · 0.85
splitMethod · 0.80
lookupFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected