[josm-dev] Special Character Problem

Sebastian Waschik sebastian.waschik at gmx.de
Sun Aug 16 19:58:22 BST 2009


Hello,

Frederik Ramm <frederik at remote.org>
writes:
>    attached is a valid .osm file of 1.5 kb, which when opened in JOSM
> and then saved results in a file of 88 kb. If you then open that 88 kb
> file in JOSM, you get an "out of memory" error. The problem seems to

strange.  I have shorten the broken.osm.  Then I tried to put the
relevant calles in a seperate java-file and it worked :-(  After a
much time I discovered that it depends on my classpath if it works or
not.

$ javac SaxTest2.java && java -cp "$PWD" SaxTest2 broken.osm
String values (6): d800 df34 d800 df34 d800 df37

This is broken.  There is another "d800 df34" added.  If you open
the attached broken.osm in josm and save it, the file length is
incremented by 4 (wrong).

$ javac SaxTest2.java && java -cp "$PWD":/usr/share/java/xercesImpl.jar SaxTest2 broken.osm
String values (4): d800 df34 d800 df37

This is correct.  Maybe this relates to the error in josm.  Maybe not.
Maybe I find the relation. But do not think I will find it today.

Greetings
Sebastian Waschik

$ md5sum broken.osm SaxTest2.java
cc9da4acbdb7282e974887c98a5a167d  broken.osm
981f7efeaa30c3f60c649d748b6b27f2  SaxTest2.java

-------------- next part --------------
A non-text attachment was scrubbed...
Name: broken.osm
Type: application/octet-stream
Size: 252 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/josm-dev/attachments/20090816/761c1a6c/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SaxTest2.java
Type: text/x-java
Size: 1194 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/josm-dev/attachments/20090816/761c1a6c/attachment.java>


More information about the josm-dev mailing list