Add getpreferredencoding. Support @euro modifiers. Fixes #554676.

The @euro part is backported to 2.2.3.
This commit is contained in:
Martin v. Löwis 2002-11-03 17:20:12 +00:00
parent cf57e50989
commit f0a4668e6f
4 changed files with 59 additions and 1 deletions

View file

@ -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)