[gstreamer-bugs] [Bug 451707] [tag] UTF-8 in ID3v1 tag not correctly decoded

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Wed Jun 27 13:13:05 PDT 2007


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=451707

  GStreamer | gst-plugins-base | Ver: HEAD CVS

Tim-Philipp Müller changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|gstreamer-                  |t.i.m at zen.co.uk
                   |bugs at lists.sourceforge.net  |
             Status|UNCONFIRMED                 |ASSIGNED
          Component|don't know                  |gst-plugins-base
     Ever Confirmed|0                           |1
            Summary|windows-1250 id3 tag not    |[tag] UTF-8 in ID3v1 tag not
                   |correctly decoded           |correctly decoded
            Version|0.10.x                      |HEAD CVS




------- Comment #1 from Tim-Philipp Müller  2007-06-27 20:13 UTC -------
Actually, the encoding used in this tag is not WINDOWS-1250, but UTF-8.
However, we fail to detect the UTF-8 correctly because we run g_utf8_validate()
on the entire size allocated for the string within the ID3v1 tag, which
includes zero string terminators in this case, which in turn are not valid
UTF-8, hence g_utf8_validate() fails and the code will fall back to decoding
the string using the current locale. In short, we're displaying garbage
_because_ we're interpreting this string as WINDOWS-1250 :)


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=451707.




More information about the Gstreamer-bugs mailing list