pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/audio/id3lib Fix the writing of unicode tags. bump pk...
details: https://anonhg.NetBSD.org/pkgsrc/rev/0f83660034e2
branches: trunk
changeset: 518548:0f83660034e2
user: ben <ben%pkgsrc.org@localhost>
date: Wed Sep 13 12:06:28 2006 +0000
description:
Fix the writing of unicode tags. bump pkgrevision. Addresses PR#34515.
http://sourceforge.net/tracker/index.php?func=detail&aid=1016290&group_id=979&atid=300979
Patch adapted for pkgsrc by George Michaelson.
diffstat:
audio/id3lib/Makefile | 4 ++--
audio/id3lib/distinfo | 4 +++-
audio/id3lib/patches/patch-ah | 13 +++++++++++++
audio/id3lib/patches/patch-ai | 28 ++++++++++++++++++++++++++++
4 files changed, 46 insertions(+), 3 deletions(-)
diffs (78 lines):
diff -r a0be090e4987 -r 0f83660034e2 audio/id3lib/Makefile
--- a/audio/id3lib/Makefile Wed Sep 13 11:10:36 2006 +0000
+++ b/audio/id3lib/Makefile Wed Sep 13 12:06:28 2006 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.24 2006/03/04 21:28:56 jlam Exp $
+# $NetBSD: Makefile,v 1.25 2006/09/13 12:06:28 ben Exp $
#
DISTNAME= id3lib-3.8.3
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=id3lib/}
diff -r a0be090e4987 -r 0f83660034e2 audio/id3lib/distinfo
--- a/audio/id3lib/distinfo Wed Sep 13 11:10:36 2006 +0000
+++ b/audio/id3lib/distinfo Wed Sep 13 12:06:28 2006 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.11 2005/02/23 20:39:47 agc Exp $
+$NetBSD: distinfo,v 1.12 2006/09/13 12:06:28 ben Exp $
SHA1 (id3lib-3.8.3.tar.gz) = c92c880da41d1ec0b242745a901702ae87970838
RMD160 (id3lib-3.8.3.tar.gz) = bfa2499ec649ed40815ad0a370c78eb1517952c4
@@ -6,3 +6,5 @@
SHA1 (patch-aa) = 75b19258eeaeb65aa2fa43cd44769aa1d6e575c3
SHA1 (patch-af) = 0266e9220791b7b14a35dc9b7564ab75cbc6562b
SHA1 (patch-ag) = a047fe90d83c88e0f6d0a6a0595a440ef49276e3
+SHA1 (patch-ah) = 42a04014cc839565063daa395884b757214eb911
+SHA1 (patch-ai) = c0521a6d62d17826c9b1f35f6be51e1b72c48e7c
diff -r a0be090e4987 -r 0f83660034e2 audio/id3lib/patches/patch-ah
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/id3lib/patches/patch-ah Wed Sep 13 12:06:28 2006 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ah,v 1.3 2006/09/13 12:06:28 ben Exp $
+
+--- ChangeLog.orig 2003-03-01 16:23:00.000000000 -0800
++++ ChangeLog
+@@ -1,3 +1,8 @@
++2006-02-17 Jerome Couderc
++
++ * Patch from Spoon to fix UTF-16 writing bug
++ http://sourceforge.net/tracker/index.php?func=detail&aid=1016290&group_id=979&atid=300979
++
+ 2003-03-02 Sunday 17:38 Thijmen Klok <thijmen%id3lib.org@localhost>
+
+ * THANKS (1.20): added more people
diff -r a0be090e4987 -r 0f83660034e2 audio/id3lib/patches/patch-ai
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/id3lib/patches/patch-ai Wed Sep 13 12:06:28 2006 +0000
@@ -0,0 +1,28 @@
+$NetBSD: patch-ai,v 1.3 2006/09/13 12:06:28 ben Exp $
+
+--- src/io_helpers.cpp.orig 2003-03-01 16:23:00.000000000 -0800
++++ src/io_helpers.cpp
+@@ -363,11 +363,22 @@ size_t io::writeUnicodeText(ID3_Writer&
+ // Write the BOM: 0xFEFF
+ unicode_t BOM = 0xFEFF;
+ writer.writeChars((const unsigned char*) &BOM, 2);
++ // Patch from Spoon : 2004-08-25 14:17
++ // http://sourceforge.net/tracker/index.php?func=detail&aid=1016290&group_id=979&atid=300979
++ // Wrong code
++ //for (size_t i = 0; i < size; i += 2)
++ //{
++ // unicode_t ch = (data[i] << 8) | data[i+1];
++ // writer.writeChars((const unsigned char*) &ch, 2);
++ //}
++ // Right code
++ unsigned char *pdata = (unsigned char *) data.c_str();
+ for (size_t i = 0; i < size; i += 2)
+ {
+- unicode_t ch = (data[i] << 8) | data[i+1];
++ unicode_t ch = (pdata[i] << 8) | pdata[i+1];
+ writer.writeChars((const unsigned char*) &ch, 2);
+ }
++ // End patch
+ }
+ return writer.getCur() - beg;
+ }
Home |
Main Index |
Thread Index |
Old Index