Re: [gtk-list] Possible bug in GLib



It should either crash with sprintf...
G is for 1.234E5 and g for 1.234e5

Gustavo Carneiro wrote:

>         I don't know if this the right place to report this, but I may
> have found a bug in GLib. It happens when I do something like:
>
>         str = g_strdup_printf("%.10G",1.123456789123456789e20);
>
>         At this point, the program crashes. Funny thing, if I change %.10G
> to %.10g, it doesn't crash.
>
> ---
> Gustavo J.A.M. Carneiro
> [reinolinux.fe.up.pt/~ee96090]
>
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]