mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
The @euro part is backported to 2.2.3.
This commit is contained in:
parent
cf57e50989
commit
f0a4668e6f
4 changed files with 59 additions and 1 deletions
|
@ -38,5 +38,7 @@ try:
|
|||
testformat("%20.f", -42, grouping=1, output=' -42')
|
||||
testformat("%+10.f", -4200, grouping=1, output=' -4,200')
|
||||
testformat("%-10.f", 4200, grouping=1, output='4,200 ')
|
||||
# Invoke getpreferredencoding to make sure it does not cause exceptions,
|
||||
locale.getpreferredencoding()
|
||||
finally:
|
||||
locale.setlocale(locale.LC_NUMERIC, oldlocale)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue