[New-bugs-announce] [issue41032] locale.setlocale example incorrect
MarcoBakera
report at bugs.python.org
Fri Jun 19 05:26:58 EDT 2020
New submission from MarcoBakera <python_org at bakera.de>:
The example given results in an error.
https://docs.python.org/3.8/library/locale.html?highlight=locale
>>> locale.setlocale(locale.LC_ALL, 'de_DE')
I could be improved with one of the following versions:
>>> locale.setlocale(locale.LC_ALL, 'de_DE.UTF-8')
>>> locale.setlocale(locale.LC_ALL, ('de_DE'), ('UTF-8'))
----------
assignee: docs at python
components: Documentation
messages: 371860
nosy: docs at python, pintman
priority: normal
severity: normal
status: open
title: locale.setlocale example incorrect
type: enhancement
versions: Python 3.6, Python 3.7, Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41032>
_______________________________________
More information about the New-bugs-announce
mailing list