Gustavo Valdes wrote:
>
> Hello:
> The last comment about an internationalization issue sounds good, but
> the problems is get only when working with nome, I mean, if I make a simple
> program (just a main fuction using the atof function and including the
> stdlib.h library) it works well. But if I make a simple GUI program with
> Gnome, using an entry box to get the value from the user, convert it to
> float, adding it an arbitrary amount and then display the result in another
> entry box it does not work, so, It could be some internationalization issue,
> but it is affecting just Gnome and not the complete Linux enviroment. So,
> where could I disable or change this kind of setting?
>
> By the way, I have solved the problem writing a function that receives
> a char* parameter then looks for the ',' character and changes for a '.'
> character and then I use atof, and it works fine. But I REALLY want to know
> how to avoid this misbehavior.
>
> Thanks in advance.
That sounds like a weired problem. If you want to check if it is GNOME
or not, try creating a project in Glade that doesn't use GNOME (disable
in "Project Options"), just GTK. Create the same test situation you
spoke of. This would tell you if its a GNOME related thing or not.
Also try using strtod instead. Can't think of anything else off hand.
Lates
Josh Green
_______________________________________________
Glade-devel maillist - [EMAIL PROTECTED]
http://lists.helixcode.com/mailman/listinfo/glade-devel