Gustavo Valdes wrote:
> 
> Hi:
>    I'm making an application that in one of it forms must convert the
> contents of an entry box (that can only receive numbers and the decimal
> separator) and store that in a flaot variable.
> 
>    To do that I use the atof function, but it doesn't work, is does work if
> I use the comma sepparator as if it was the decimal point. However this
> problem has something to do with gnome, because when I same something
> similar but without gnome, and it works as it should. I think that gnome is
> bypassing the stdlib.h library or it implements and overloaded version of
> it.
> 
>    Thanks in advance.

Sounds like a locale issue (internationalization). Perhaps the language
you have selected on your system uses the ',' character instead of a
period (see "man atof" or "man strtod"). To see what language you are
using type "env | grep LANG" from a shell.

I used to also use entry boxes for #s and the like, now I use spin
buttons which do all that for you. Hope that helps..
        Josh Green

_______________________________________________
Glade-devel maillist  -  [EMAIL PROTECTED]
http://lists.helixcode.com/mailman/listinfo/glade-devel

Reply via email to