[PATCH] More tolerant about spaces in GPS coordinates.

Dirk Hohndel dirk at hohndel.org
Tue Feb 3 07:41:48 PST 2015


On Tue, Feb 03, 2015 at 04:32:40PM +0100, Patrick Valsecchi wrote:
> Hi,
> 
> This is a tentative to make subsurface a bit more flexible when parsing GPS
> coordinates. I like to geo-reference my dives, but copy and pasting the
> coordinates from web sites was quite a pain (needed a lot of manual
> correction).
> 
> Please have a look and comment. I'm quite tempted to go wild and do another
> rewrite without using regular expressions... would be more flexible and less
> code, IMHO.

Absolutely. By all means, please rewrite it without regular expression if
that makes it more flexible.

Given where we are in the testing cycle, I won't apply this fix to master.
I'm hoping to cut 4.4 in the next day or two and there's no way this will
get enough testing.

/D


More information about the subsurface mailing list