Cool.  If anyone familiar with the planet dumper tool is listening...<br><br>In <a href="http://svn.openstreetmap.org/applications/utils/planet.osm/C/output_osm.c" target="_blank">http://svn.openstreetmap.org/applications/utils/planet.osm/C/output_osm.c</a><br>
<br>} else if ((*in >= 0) && (*in < 32)) {<br>
            escape_tmp[len] = '?';<br>            len++;<br><br>should be something like<br><br>} else if ((*in > 0) && (*in < 32)) {<br>            len+=sprintf(&escape_tmp[len], "&#%d;", *in);<br>
<br>"Something like" as in I haven't even checked if that compiles :).<br><br>Of course, another thing to consider is that 1024 bytes isn't enough for the truly pathological cases.  I think you need like 1531 or something to handle that.  Fixing this might be enough to properly process the current db, though.<br>
<br>Any chance of adding num_changes?<br><br><div class="gmail_quote">On Mon, Dec 21, 2009 at 12:54 AM, Brett Henderson <span dir="ltr"><<a href="mailto:brett@bretth.com">brett@bretth.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Anthony,<br><br>No, that's not me.  I only look after the osmosis changesets.  Hmm, the word changeset has become overloaded ... by osmosis changesets I mean the diff/delta files.<br><br>The planet and changesets-xx.osm.bz2 files are created using the planet dumper tool.  I believe Jon and Grant look after those.<br>
<font color="#888888">
<br>Brett</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Mon, Dec 21, 2009 at 4:09 PM, Anthony <span dir="ltr"><<a href="mailto:osm@inbox.org" target="_blank">osm@inbox.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Brett,<br><br>Do you also maintain the changesets files (e.g. changesets-091216.osm.bz2)?  Now that the full history dump is out I can confirm that there are a relatively large number of corrupted key/values in that file.  For example, see <a href="http://www.openstreetmap.org/browse/changeset/2498325" target="_blank">http://www.openstreetmap.org/browse/changeset/2498325</a> and <a href="http://www.openstreetmap.org/browse/changeset/966232" target="_blank">http://www.openstreetmap.org/browse/changeset/966232</a> .  The dumper is converting control characters into question marks.<br>

<font color="#888888">
<br>Anthony<br>
</font></blockquote></div><br>
</div></div></blockquote></div><br>