openplanets/jpylyzer — Issue #12: XML contains null byte in case of JP2s with UUID Info Box
Author: bitsgalore
Created: 2012-03-01 21:39:04+00:00
State: open

XML contains null byte in case of JP2s with UUID Info Box, which means that output is not well-formed and cannot be opened with XML editor/viewer.

Happens at least with the Win32 binary under Windows 7 (strangely if I remember well problem didn't happen under XP).

A bit embarrassing, as the new sample images all contain this (otherwise not very common) box.

Solution: try to strip away last character (which *should* be null byte according to standard, but I assumed that elementtree would take care of this automatically!)