entering GPS coordinates

Dirk Hohndel dirk at hohndel.org
Mon Jan 28 06:23:55 PST 2013


On Jan 28, 2013, at 12:27 AM, Henrik Brautaset Aronsen wrote:

> Great stuff!  Any reason why you used a semicolon as the default separator, by the way?  

Yes - parsing issues with locales that use a decimal comma. I ran into this when I tried my first hand-coded parser and kept it around for the simplistic sscanf parsing.

> Comma seems to be used "everywhere" else. Luckily you added support for comma when inputting the coordinates, so this is not a biggie.

When I implemented the utf8 based parser that's now committed, this was really easy to do. In my working tree I'm 2/3 towards map input and there the semicolon text has been removed, too.

/D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4130 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20130128/3af8afa2/attachment.bin>


More information about the subsurface mailing list