Warning, /multimedia/kid3/packaging/patches/id3lib-3.8.3-31-fix-utf16-stringlists.patch is written in an unsupported language. File is not indexed.

0001 This patch fixes tag corruption after pipe characters.
0002 
0003 Author: Urs Fleisch <urs.fleisch@gmail.com>
0004 Fixes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=680915
0005 --- a/src/io_helpers.cpp
0006 +++ b/src/io_helpers.cpp
0007 @@ -373,10 +373,17 @@
0008      //}
0009      // Right code
0010      unsigned char *pdata = (unsigned char *) data.c_str();
0011 +    unicode_t lastCh = BOM;
0012      for (size_t i = 0; i < size; i += 2)
0013      {
0014        unicode_t ch = (pdata[i] << 8) | pdata[i+1];
0015 +      if (lastCh == 0 && ch != BOM)
0016 +      {
0017 +        // Last character was NULL, so start next string with BOM.
0018 +        writer.writeChars((const unsigned char*) &BOM, 2);
0019 +      }
0020        writer.writeChars((const unsigned char*) &ch, 2);
0021 +      lastCh = ch;
0022      }
0023      // End patch
0024    }