logo separator

[mkgmap-dev] Bug in Format6Encoder.encodeText()

From Paul Ortyl ortylp at 3miasto.net.pl on Mon May 31 19:20:46 BST 2010

Hi,

I've got a bug to report for r1651 of mkgmap:

java.lang.ArrayIndexOutOfBoundsException: 3
	at uk.me.parabola.imgfmt.app.labelenc.Format6Encoder.put6(Format6Encoder.java:137)
	at uk.me.parabola.imgfmt.app.labelenc.Format6Encoder.encodeText(Format6Encoder.java:91)
	at uk.me.parabola.imgfmt.app.Label.write(Label.java:115)
	at uk.me.parabola.imgfmt.app.lbl.LBLFile.newLabel(LBLFile.java:125)
	at uk.me.parabola.mkgmap.build.MapBuilder.processPOIs(MapBuilder.java:456)
	at uk.me.parabola.mkgmap.build.MapBuilder.makeMap(MapBuilder.java:191)
	at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:96)
	at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:61)
	at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:189)
	at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:186)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:619)

comes for the following POI

<node id='299073581' lat='49.7950742' lon='9.9312049'>
<tag k='addr:postcode' v='97070'/>
<tag k='addr:housenumber' v='½'/>
<tag k='shop' v='clothes'/>
<tag k='addr:street' v='Schönbornstraße'/>
<tag k='addr:city' v='Würzburg'/>
<tag k='name' v='Marc O´Polo'/>
</node>

The problem is at the unicode character '1/2' for housenumber.

Thanks,

Paul


-- 
Don't take life too seriously; you will never get out of it alive.
                                        -- Elbert Hubbard



More information about the mkgmap-dev mailing list