def initialize_locale():
    'Set the locale to the users default setting\n    and set ``_LOCALE_INITIALIZED`` to indicate whether\n    ``get_text_width`` may run into trouble\n    '
    global _LOCALE_INITIALIZED, _LOCALE_INITIALIZATION_ERR
    if (_LOCALE_INITIALIZED is False):
        try:
            locale.setlocale(locale.LC_ALL, '')
        except locale.Error as e:
            _LOCALE_INITIALIZATION_ERR = e
        else:
            _LOCALE_INITIALIZED = True
Set the locale to the users default setting
and set ``_LOCALE_INITIALIZED`` to indicate whether
``get_text_width`` may run into trouble
def initialize_locale():
    'Set the locale to the users default setting\n    and set ``_LOCALE_INITIALIZED`` to indicate whether\n    ``get_text_width`` may run into trouble\n    '
    global _LOCALE_INITIALIZED, _LOCALE_INITIALIZATION_ERR
    if (_LOCALE_INITIALIZED is False):
        try:
            locale.setlocale(locale.LC_ALL, )
        except locale.Error as e:
            _LOCALE_INITIALIZATION_ERR = e
        else:
            _LOCALE_INITIALIZED = True