logo separator

[mkgmap-dev] style file reader patch

From Mike Baggaley mike at tvage.co.uk on Sat Jan 14 22:21:22 GMT 2017

Hi Gerd, I have found that the style file reader does handle non ASCII
characters properly. With the following line in my points file:

amenity=cafe & name~'[Cc]af[eé]' {echotags 'Description as name'; delete
name}

I get an error:

Error in style : error : (points:142): Bad character in input, file probably
not in utf-8

This happens whether or not I save the points file as UTF-8.

The attached patch fixes the problem.

Can you please try it and commit if it is OK (you may want to change the
RuntimeException)?

Thanks,
Mike

-------------- next part --------------
A non-text attachment was scrubbed...
Name: stylereader.patch
Type: application/octet-stream
Size: 1587 bytes
Desc: not available
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20170114/52e1bb11/attachment.obj>


More information about the mkgmap-dev mailing list