retitle 395867 python-tk breaks with LC_NUMERIC != C reassign 395867 python-tk 2.3.5-2 thanks
Re: To Matthias Klose 2006-10-28 <[EMAIL PROTECTED]>
> > please build pycocuma using python2.4, so we can drop python2.3
> > from testing/unstable. If thats not possible, please consider dropping
> > pycocuma from testing/unstable as well.
>
> The 1.2-4 upload made pycocuma break with python2.4:
>
> $ ./pycocuma
[...]
> File "/home/cb/debian/pycocuma/pycocuma/pycocumalib/MainView.py", line 304,
> in createWidgets
> self._notebook.setnaturalsize()
> File "/usr/lib/python2.4/site-packages/Pmw/Pmw_1_2/lib/PmwNoteBook.py",
> line 355, in setnaturalsize
> self.configure(hull_width = width, hull_height = height)
> File "/usr/lib/python2.4/site-packages/Pmw/Pmw_1_2/lib/PmwBase.py", line
> 722, in configure
> ((),) * len(indirectOptions), indirectOptions.values())
> File "/usr/lib/python2.4/lib-tk/Tkinter.py", line 1142, in configure
> return self._configure('configure', cnf, kw)
> File "/usr/lib/python2.4/lib-tk/Tkinter.py", line 1133, in _configure
> self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
> _tkinter.TclError: bad screen distance "457.0"
>
> It works fine using python2.3.
Hi,
with the help of Andreas Barth I just found out where the actual
breakage is - python-tk does not longer parse the string (!) 457.0 as
a floating point number when LC_NUMERIC is set to a locale where the
decimal separator is not . (e.g. de_DE).
As workaround to close #395443, I inserted a
locale.setlocale(locale.LC_NUMERIC, 'C') into pycocuma, but imho this
should be fixed in python-tk as well, i.e. it should always (also)
accept .0 even in !C locales.
Christoph
--
[EMAIL PROTECTED] | http://www.df7cb.de/cs/
Universität des Saarlandes, Compiler Design Lab
signature.asc
Description: Digital signature

