[issue10135] Format specifier 'n' not working

2010-10-19 Thread Eric Smith
Changes by Eric Smith : -- stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue10135] Format specifier 'n' not working

2010-10-18 Thread Eric Smith
Changes by Eric Smith : Removed file: http://bugs.python.org/file19269/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue10135] Format specifier 'n' not working

2010-10-18 Thread Eric Smith
Changes by Eric Smith : Removed file: http://bugs.python.org/file19266/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue10135] Format specifier 'n' not working

2010-10-18 Thread Eric Smith
Changes by Eric Smith : Removed file: http://bugs.python.org/file19265/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue10135] Format specifier 'n' not working

2010-10-18 Thread Eric Smith
Changes by Eric Smith : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue10135] Format specifier 'n' not working

2010-10-18 Thread Boštjan Mejak
Boštjan Mejak added the comment: I thought having "Slovenian" locale set in Windows OS is the way the 'n' format specifier works. So I must set the locale in the app. Now we're cookin'! ;) Thanks Georg. On Mon, Oct 18, 2010 at 8:14 PM, Georg Brandl wrote: > > Georg Brandl added the comment:

[issue10135] Format specifier 'n' not working

2010-10-18 Thread Georg Brandl
Georg Brandl added the comment: You need to call setlocale() in your program. For more in-depth explanations, please refer to the docs at . -- nosy: +georg.brandl ___ Python tracker

[issue10135] Format specifier 'n' not working

2010-10-18 Thread Boštjan Mejak
Boštjan Mejak added the comment: So do I need additional things to set in my code if I use the 'n' format specifier in order for it to be locale-aware? So using just the 'n' format specifier is not enough? Please explain in depth. On Mon, Oct 18, 2010 at 7:32 PM, Eric Smith wrote: > > Eric S

[issue10135] Format specifier 'n' not working

2010-10-18 Thread Eric Smith
Eric Smith added the comment: It looks like the float.__format__ code is correctly using the value of decimal_point = '.'. It also agrees with locale.format(). How are you setting the locale? The problem appears to be either how you are setting the locale or the contents of the locale, not in

[issue10135] Format specifier 'n' not working

2010-10-18 Thread Boštjan Mejak
Boštjan Mejak added the comment: {'mon_decimal_point': '', 'int_frac_digits': 127, 'p_sep_by_space': 127, 'frac_digits': 127, 'thousands_sep': '', 'n_sign_posn': 127, 'decimal_point': '.', 'int_curr_symbol': '', 'n_cs_precedes': 127, 'p_sign_posn': 127, 'mon_thousands_sep': '', 'negative_sign':

[issue10135] Format specifier 'n' not working

2010-10-18 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo versions: -3rd party, Python 2.5, Python 2.6, Python 3.3 ___ Python tracker ___ ___ Py

[issue10135] Format specifier 'n' not working

2010-10-18 Thread Eric Smith
Eric Smith added the comment: Oops, I meant "locale.format('%.3f', 2.76)", although of course the number shouldn't matter. -- ___ Python tracker ___ ___

[issue10135] Format specifier 'n' not working

2010-10-18 Thread Eric Smith
Eric Smith added the comment: How are you setting the Slovenian locale? Could please let me know what this prints: import locale locale.localeconv() Also, could you let me know what: locale.format('%.3f', 2.45) prints? Both of these would be when the Slovenian locale is selected. Thanks. -

[issue10135] Format specifier 'n' not working

2010-10-18 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +eric.smith, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue10135] Format specifier 'n' not working

2010-10-18 Thread Boštjan Mejak
New submission from Boštjan Mejak : Have your default locale set to 'Slovenian' which uses a comma for the decimal symbol, like 2.76 is written as 2,76. Observe that the format specifier 'n' does not work for the default 'Slovenian' locale setting. Then try running this in the Python interpret