[issue3140] str.format("{0:n}") poss. bug with setlocale()

2008-06-24 Thread Eric Smith
Eric Smith <[EMAIL PROTECTED]> added the comment: Fixed in r64499 (trunk) and r64500 (py3k). I now get: >>> import locale >>> locale.setlocale(locale.LC_ALL, "en_US.UTF-8") 'en_US.UTF-8' >>> for x in (123,1234,12345,123456,1234567,12345678,123456789,1234567890,12345678900): ... print("[{0:>20n}

[issue3140] str.format("{0:n}") poss. bug with setlocale()

2008-06-19 Thread Eric Smith
Changes by Eric Smith <[EMAIL PROTECTED]>: -- versions: +Python 2.6 ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mail

[issue3140] str.format("{0:n}") poss. bug with setlocale()

2008-06-19 Thread Eric Smith
Eric Smith <[EMAIL PROTECTED]> added the comment: I'd say that's a bug. I'll look at it. -- components: +Interpreter Core nosy: +talin ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3140] str.format("{0:n}") poss. bug with setlocale()

2008-06-19 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- assignee: -> eric.smith nosy: +eric.smith ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3140] str.format("{0:n}") poss. bug with setlocale()

2008-06-19 Thread Mark Summerfield
New submission from Mark Summerfield <[EMAIL PROTECTED]>: Python 30b1 >>> import locale >>> locale.setlocale(locale.LC_ALL, "en_US.UTF-8") 'en_US.UTF-8' >>> for x in (1234,12345,123456,1234567,12345678,123456789,1234567890,12345678900): print("[{0:>20n}]".format(x)) [