Lines Matching refs:setlocale
29 Exception raised when the locale passed to :func:`setlocale` is not
33 .. function:: setlocale(category, locale=None)
35 If *locale* is given and not ``None``, :func:`setlocale` modifies the locale
46 :func:`setlocale` is not thread-safe on most systems. Applications typically
50 locale.setlocale(locale.LC_ALL, '')
287 According to POSIX, a program which has not called ``setlocale(LC_ALL, '')``
288 runs using the portable ``'C'`` locale. Calling ``setlocale(LC_ALL, '')`` lets
323 On some systems, it is necessary to invoke :func:`setlocale` to obtain the user
324 preferences, so this function is not thread-safe. If invoking setlocale is not
338 code is formatted for use with :func:`setlocale`. If normalization fails, the
342 encoding for the locale code just like :func:`setlocale`.
409 locale via :func:`setlocale` first.
500 >>> locale.setlocale(locale.LC_ALL, 'de_DE')
502 >>> locale.setlocale(locale.LC_ALL, '') # use user's preferred locale
503 >>> locale.setlocale(locale.LC_ALL, 'C') # use default (C) locale
504 >>> locale.setlocale(locale.LC_ALL, loc) # restore saved locale
520 calling ``setlocale(LC_ALL, '')``.
522 It is generally a bad idea to call :func:`setlocale` in some library routine,
551 Extension modules should never call :func:`setlocale`, except to find out what