diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-03-10 15:36:00 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-03-10 09:21:55 -0700 |
commit | 6c7e2f9ffae975204f11524382bfa8553807ce20 (patch) | |
tree | 0a8e6fccfb1b4ae65f984b4fefd918523beebd3a /print.c | |
parent | 6dd31a6cc6c3305bc432a4cd636ee86fea55ad67 (diff) | |
download | subsurface-6c7e2f9ffae975204f11524382bfa8553807ce20.tar.gz |
Info dialog: print coordinates using an ASCII 'dtoa' type of method
dac29e7bc4 introduced changes to how the GPS coordinate string
is parsed; we now prefer to parse decimal numbers using the '.'
character.
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'.
Reported-and-tested-by: Sergey Starosek <sergey.starosek@gmail.com>
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'print.c')
0 files changed, 0 insertions, 0 deletions