Quoting James Henstridge <[EMAIL PROTECTED]>:

> when you import gtk, setlocale is called (it is required for use with
> Asian languages). I guess your locale doesn't use the dot for decimal
> points.  To force the use of normal C number formats, set the environment
> variable LC_NUMERIC to C:
>   export LC_NUMERIC=C
>
> This will tell the any locale aware code to use normal C conventions for
> parsing numeric values, while still letting messages from programs get
> translated.

Sorry, it even breaks like this:

    > echo $LANG

    > python
    Python 1.5.2b2 (#9, Feb 23 1999, 13:40:58)  [GCC 2.7.2.3] on linux2
    Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
    >>> float('0')
    0.0
    >>> import gtk
    >>> float('0')
    Traceback (innermost last):
      File "<stdin>", line 1, in ?
    ValueError: float() literal too large: 0
    >>> float('0.0')
    Traceback (innermost last):
      File "<stdin>", line 1, in ?
    ValueError: float() literal too large: 0.0
    >>> float('0,0')
    Traceback (innermost last):
      File "<stdin>", line 1, in ?
    ValueError: invalid literal for float(): 0,0
    >>>

So I suspect there is more to it than meets the eye :-/

    > LANG=C python
    Python 1.5.2b2 (#9, Feb 23 1999, 13:40:58)  [GCC 2.7.2.3] on linux2
    Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
    >>> import gtk
    >>> float('0')
    Traceback (innermost last):
      File "<stdin>", line 1, in ?
    ValueError: float() literal too large: 0

this also doesn't work.

--
Dipl. Inf. (FH) Aaron "Optimizer" Digulla     Assistent im BIKS Labor, FB WI
"(to) optimize: Make a program faster by      FH Konstanz, Brauneggerstr. 55
improving the algorithms rather than by       Tel:+49-7531-206-514
buying a faster machine."                     EMail: [EMAIL PROTECTED]
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to