Boštjan Mejak <bostjan.me...@gmail.com> 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 <rep...@bugs.python.org> wrote:
>
> Eric Smith <e...@trueblade.com> 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 the formatting
> code.
>
> ----------
>
> _______________________________________
> Python tracker <rep...@bugs.python.org>
> <http://bugs.python.org/issue10135>
> _______________________________________
>
----------
Added file: http://bugs.python.org/file19266/unnamed
_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10135>
_______________________________________
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.<br><br><div class="gmail_quote">
On Mon, Oct 18, 2010 at 7:32 PM, Eric Smith <span dir="ltr"><<a
href="mailto:rep...@bugs.python.org">rep...@bugs.python.org</a>></span>
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
Eric Smith <<a href="mailto:e...@trueblade.com">e...@trueblade.com</a>>
added the comment:<br>
<br>
</div>It looks like the float.__format__ code is correctly using the value of
decimal_point = '.'. It also agrees with locale.format().<br>
<br>
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 the formatting
code.<br>
<br>
----------<br>
<div><div></div><div class="h5"><br>
_______________________________________<br>
Python tracker <<a
href="mailto:rep...@bugs.python.org">rep...@bugs.python.org</a>><br>
<<a href="http://bugs.python.org/issue10135"
target="_blank">http://bugs.python.org/issue10135</a>><br>
_______________________________________<br>
</div></div></blockquote></div><br>
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com