[PATCH] Info dialog: print coordinates using an ASCII 'dtoa' type of method

Sergey Starosek sergey.starosek at gmail.com
Sun Mar 10 07:01:30 PDT 2013


On Sun, Mar 10, 2013 at 3:36 PM, Lubomir I. Ivanov <neolit123 at gmail.com>wrote:

> From: "Lubomir I. Ivanov" <neolit123 at gmail.com>
>
> This patch makes modifications to info.c:print_gps_coordinates(),
> where we are still using a locale dependent method for converting
> a double to string - snprintf(). Instead, we attempt to use GLib's
> g_ascii_formatd(), and store the resulted strings into two
> buffers named 'dbuf_lat' and 'dbuf_lon'. We then pass the buffers
> to the final snprintf() formatting with '%s'.
>

Works for me, thanks.

Sergey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20130310/246a7617/attachment-0001.html>


More information about the subsurface mailing list