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-boun...@lists.mkgmap.org.uk> im Auftrag von Ticker 
Berkin <rwb-mkg...@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@lists.mkgmap.org.uk
https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Attachment: malformed.patch
Description: malformed.patch

_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to