logo separator

[mkgmap-dev] r4836 stops Hungary & Romania

From Gerd Petermann gpetermann_muenchen at hotmail.com on Tue Dec 28 07:23:36 GMT 2021

Hi all,

I was able to reproduce with option --latin1 and the modified default style.

The offending node seems to be https://www.openstreetmap.org/node/9122388694

mkgmap loops in method AnyCharsetEncoder.encodeText(String text)
I guess the same can happen when labels are cut at length 170.

The attached patch seems to fix this, but I have no idea if this is the right approach.

Gerd

________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Ticker Berkin <rwb-mkgmap at jagit.co.uk>
Gesendet: Montag, 27. Dezember 2021 20:06
An: Development list for mkgmap
Betreff: Re: [mkgmap-dev] r4836 stops Hungary & Romania

Looks like uft16 surrogate pair chars are being separated by the
substr.

Ticker



On Mon, 2021-12-27 at 19:28 +0100, Arndt Röhrig wrote:
>  ...mayby is in the osm data a kryptic text like this:
>
>  https://www.openstreetmap.org/node/9115233473
>

_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk
https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: malformed.patch
Type: application/octet-stream
Size: 706 bytes
Desc: malformed.patch
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20211228/8e1ce329/attachment.obj>


More information about the mkgmap-dev mailing list