diff options
author | Matteo Bernardini | 2020-01-26 12:12:46 +0100 |
---|---|---|
committer | Matteo Bernardini | 2020-01-26 12:12:46 +0100 |
commit | 5c6dca884b084906c44487685b3076b1af9535e5 (patch) | |
tree | 539e39579797fc68f887f55276d1d3a18b2e2107 /libraries/id3lib/patches/31-fix-utf16-stringlists.patch | |
parent | 192ba2be163f6c90f8b56e4d4a59c6b7ef3b1b5c (diff) | |
download | slackbuilds-current-20200126.1.tar.gz |
20200126.1 global branch merge.current-20200126.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries/id3lib/patches/31-fix-utf16-stringlists.patch')
-rw-r--r-- | libraries/id3lib/patches/31-fix-utf16-stringlists.patch | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/libraries/id3lib/patches/31-fix-utf16-stringlists.patch b/libraries/id3lib/patches/31-fix-utf16-stringlists.patch deleted file mode 100644 index 3582238743..0000000000 --- a/libraries/id3lib/patches/31-fix-utf16-stringlists.patch +++ /dev/null @@ -1,24 +0,0 @@ -This patch fixes tag corruption after pipe characters. - -Author: Urs Fleisch <urs.fleisch@gmail.com> -Fixes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=680915 ---- a/src/io_helpers.cpp -+++ b/src/io_helpers.cpp -@@ -373,10 +373,17 @@ - //} - // Right code - unsigned char *pdata = (unsigned char *) data.c_str(); -+ unicode_t lastCh = BOM; - for (size_t i = 0; i < size; i += 2) - { - unicode_t ch = (pdata[i] << 8) | pdata[i+1]; -+ if (lastCh == 0 && ch != BOM) -+ { -+ // Last character was NULL, so start next string with BOM. -+ writer.writeChars((const unsigned char*) &BOM, 2); -+ } - writer.writeChars((const unsigned char*) &ch, 2); -+ lastCh = ch; - } - // End patch - } |