[Bugs] #2385 UNSP: Turtle Art should respect locale when rendering decimal point
Sugar Labs Bugs
bugtracker-noreply at sugarlabs.org
Wed Sep 29 09:53:35 EDT 2010
#2385: Turtle Art should respect locale when rendering decimal point
------------------------------------------+---------------------------------
Reporter: walter | Owner: walter
Type: defect | Status: new
Priority: Unspecified by Maintainer | Milestone: Unspecified by Release Team
Component: Turtleart | Version: Unspecified
Severity: Unspecified | Keywords:
Distribution: Unspecified | Status_field: Unconfirmed
------------------------------------------+---------------------------------
Comment(by erikos):
I did the following to reproduce the issue.
{{{
[erikos at pennylane ~]$ python
Python 2.6.4 (r264:75706, Jun 4 2010, 18:20:16)
[GCC 4.4.4 20100503 (Red Hat 4.4.4-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>>
>>> locale.getdefaultlocale()
('de_DE', 'UTF8')
>>> locale.localeconv()['decimal_point']
'.'
>>> import os
>>> os.environ['LANG']
'de_DE.utf8'
>>> lang = os.environ['LANG']
>>> locale.setlocale(locale.LC_NUMERIC, lang)
'de_DE.utf8'
>>> locale.localeconv()['decimal_point']
','
>>> locale.getdefaultlocale()
('de_DE', 'UTF8')
}}}
I think we should find out what happens. Then we can come up with the
right patch. We do not have to rush here.
--
Ticket URL: <http://bugs.sugarlabs.org/ticket/2385#comment:5>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list