After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 356259 - &#x0 in UserComment field
&#x0 in UserComment field
Status: RESOLVED FIXED
Product: f-spot
Classification: Other
Component: Editing
CVS
Other Linux
: Normal normal
: ---
Assigned To: F-spot maintainers
F-spot maintainers
Depends on:
Blocks: 474421
 
 
Reported: 2006-09-16 13:15 UTC by Bengt Thuree
Modified: 2008-01-16 13:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
photo with problem (510.64 KB, image/jpeg)
2006-09-16 13:18 UTC, Bengt Thuree
  Details
strip-zeros-from-comment-field.patch (547 bytes, patch)
2007-12-02 17:29 UTC, Maxxer
committed Details | Review

Description Bengt Thuree 2006-09-16 13:15:20 UTC
After importing a photo with existing tags I get the following in the UserComment field.

    <rdf:Description>
      <ns2:UserComment>
        <rdf:Alt>
          <rdf:li xml:lang="x-default">&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;&#x0;</rdf:li>
        </rdf:Alt>
      </ns2:UserComment>
    </rdf:Description>
Comment 1 Bengt Thuree 2006-09-16 13:18:06 UTC
Created attachment 72898 [details]
photo with problem
Comment 2 Larry Ewing 2006-10-05 04:41:16 UTC
hmmm I need to look into this deeper.
Comment 3 Maxxer 2007-12-02 09:22:24 UTC
I get those descriptions even when importing directly from camera.
Comment 4 Maxxer 2007-12-02 10:37:05 UTC
If it can be useful, this is what exiv2 -v -p h says about UserComment of an imported image:

0x9286 Photo        UserComment                 Undefined 263 263
(Binary value suppressed)

\0 values are the "unused" part of the comment. Shouldn't we strip those values off of the result string, in src/Imaging/Tiff.cs:441?
Comment 5 Maxxer 2007-12-02 17:29:41 UTC
Created attachment 100050 [details] [review]
strip-zeros-from-comment-field.patch

this patch simply adds a .Trim('\0') to the return value.
Comment 6 Bengt Thuree 2007-12-02 17:38:40 UTC
Thanks Maxxer :) Much appreciated simple and easy patch :)
Comment 7 Stephane Delcroix 2008-01-16 13:09:55 UTC
fixed in r3546