Fwd: Re: EasyTAG-2.1.4-destroyed cover

Scott Wheeler wheeler at kde.org
Mon Jan 21 15:13:42 CET 2008


Jeff Mitchell wrote:
> Valid bug?
>
>
> ----------  Forwarded Message  ----------
>
> Subject: Re: EasyTAG-2.1.4-destroyed cover
> Date: Monday 21 January 2008
> From: Jakob Sack <jakob.sack at googlemail.com>
> To: Jeff Mitchell <kde-dev at emailgoeshere.com>
>
> Hi Jérôme,
>
> I found the error :-)
> Easytag has written the tags (by default?) as UTF16. In this way the name 
> amazon.jpg was saved as "61 00 6d 00 61 00 7a 00 6f 00 6e 00 2e 00 6a 00 70 
> 00 67 00 ( 00 ff d8 ff e0 ...)". ID3v2.4 says that after the name of the file 
> comes a "00" and then the binary data. It seems to me like amarok was using 
> the "00" after the "67" as the "this is the end of the name-00".
> I switched to UTF8 ("61 6d 61 7a 6f 6e 2e 6a 70 67 ( 00 ff d8 ff e0 ...)") and 
> everything is fine. So I think it's an amarok bug.
>   

If I understand what's being said, this is not correct.  After the 
description comes a string terminator according to the encoding being 
used.  In UTF-16 the terminator is two bytes wide.  As notated in 4.14 
of the frames spec:

     Description        <text string according to encoding> $00 (00)

The (00) indicates an additional termination byte for 16-bit character
streams (which is clear if you look at its other usage inside the spec).

-Scott



More information about the taglib-devel mailing list