Your message dated Mon, 11 Dec 2017 09:04:12 +0000
with message-id <[email protected]>
and subject line Bug#466318: fixed in eyed3 0.8.4-1
has caused the Debian Bug report #466318,
regarding python-eyed3: Updating V1.1 Tag with non-ascii comment field fails.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
466318: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=466318
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-eyed3
Version: 0.6.14-1
Severity: normal

Hello,

when I try to update a tag with non-ascii charachters in the comment
field I get an UnicodeEncodeError (traceback below). I think, the reason
is a missing `encode' call in the Tag.__saveV1Tag method. All other
fields are encoded using 'latin-1' but comment is not encoded.

Example Traceback:
  File "/home/eike/python/audiofile.py", line 302, in writeFile
    if not tag.update(eyeD3.ID3_V1_1):
  File "/var/lib/python-support/python2.5/eyeD3/tag.py", line 520, in update
    self.__saveV1Tag(version);
  File "/var/lib/python-support/python2.5/eyeD3/tag.py", line 1064, in 
__saveV1Tag
    cmt = self._fixToWidth(cmt, 30);
  File "/var/lib/python-support/python2.5/eyeD3/tag.py", line 1096, in 
_fixToWidth
    retval = str(s);
UnicodeEncodeError: 'ascii' codec can't encode characters in position 56-59: 
ordinal not in range(128)

I added the missing encode call in file tag.py and it worked for me.
Patch is attached.

Regards
    eike

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (102, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-eyed3 depends on:
ii  python                        2.4.4-6    An interactive high-level object-o
ii  python-support                0.7.6      automated rebuilding support for p

python-eyed3 recommends no packages.

-- no debconf information
--- tag.py-orig 2007-05-08 04:17:44.000000000 +0200
+++ tag.py      2008-02-17 23:22:42.000000000 +0100
@@ -1061,7 +1061,7 @@
          elif c.description == "":
             cmt = c.comment;
             # Keep searching in case we find the description eyeD3 uses.
-      cmt = self._fixToWidth(cmt, 30);
+      cmt = self._fixToWidth(cmt.encode("latin_1"), 30);
       if version != ID3_V1_0:
          track = self.getTrackNum()[0];
          if track != None:

--- End Message ---
--- Begin Message ---
Source: eyed3
Source-Version: 0.8.4-1

We believe that the bug you reported is fixed in the latest version of
eyed3, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Gaetano Guerriero <[email protected]> (supplier of updated eyed3 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 29 Nov 2017 22:42:54 +0100
Source: eyed3
Binary: python-eyed3 python3-eyed3 eyed3
Architecture: source
Version: 0.8.4-1
Distribution: unstable
Urgency: low
Maintainer: Gaetano Guerriero <[email protected]>
Changed-By: Gaetano Guerriero <[email protected]>
Description:
 eyed3      - Display and manipulate id3-tags on the command-line
 python-eyed3 - Python module for id3-tags manipulation (Python 2 version)
 python3-eyed3 - Python module for id3-tags manipulation (Python 3 version)
Closes: 466318 481678 648540 878853
Changes:
 eyed3 (0.8.4-1) unstable; urgency=low
 .
   * New upstream version
   * Run eyed3 program with python3 (Closes: #878853).
     This resolves encoding related bugs. (Closes: #466318,
     Closes: #481678, Closes: #648540)
   * Drop patch fix-setup-py3-encoding (applied upstream)
 .
   * Upload sponsored by Petter Reinholdtsen.
Checksums-Sha1:
 15642e51b3a54a651c99aac279af95a5d36c5f84 2059 eyed3_0.8.4-1.dsc
 abfbbc2d61ed8e55cfd559388d82eabb89020dda 227747 eyed3_0.8.4.orig.tar.gz
 5c18295eb7009d2ecfa12bb0574c01a6678dadb9 12732 eyed3_0.8.4-1.debian.tar.xz
 4e3069832bf4a73c95d16c5e486748d6aee884fb 6769 eyed3_0.8.4-1_source.buildinfo
Checksums-Sha256:
 218f6d58fc1e8bcc939b22011f645a08334e6adee3449ff4119d96b04acd58d5 2059 
eyed3_0.8.4-1.dsc
 9a8f334c640813647062aaa46c52d65641bec6f7d7e73e51441c95d3d93c3f43 227747 
eyed3_0.8.4.orig.tar.gz
 6d8a22b2c1fc60b882a3e74eaf69d525296f7464172e638edf9152f9c0a13ae7 12732 
eyed3_0.8.4-1.debian.tar.xz
 fba7684d9a4d1aeb9c1a115d16135e16e65293e5b238927ffc1ee89ce1e9832c 6769 
eyed3_0.8.4-1_source.buildinfo
Files:
 577ee7ad1b8127e16fcea1c731252250 2059 sound optional eyed3_0.8.4-1.dsc
 e65ad1f53d24735b1d8a25263fd37c7d 227747 sound optional eyed3_0.8.4.orig.tar.gz
 a278bba7d619b82cac8b18556f47a990 12732 sound optional 
eyed3_0.8.4-1.debian.tar.xz
 550e95f0022c2291593446e1c16d32f7 6769 sound optional 
eyed3_0.8.4-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEERqLf4owIeylOb9kkgSgKoIe6+w4FAlouP2kACgkQgSgKoIe6
+w4u4A//VZ9S8nzBu096CMt9bXxNJ51NcPKJZ6EGpzK6ULElh9YYqVQyWW4HI0zv
hEPWHzCtu4k0188ZbMdMfsfmuUL07lxiQ47HI1X3wnzDYrZAtSPQPVMfwMc2c8r2
svHgPoBaXk6y+GswXC0aZlKi5GArn4Atpq3lP076qp+uJO8qfDX6i2HFO6Pmk+8h
uQjBe470PI9BGYaMTNMMi2dkyhrjl5ig1id+3wIsNDyTvaomm66B24G17u3vOwus
rkbmUHERJkO+1oOmJfNiCwFTWeOqgWxyzJAHqtt+1S1sR0VN1pwax9FP4Sx6WE48
0r9QpbQGDUtWXzRAJHH4Ww+PkP2w9B9AsJoQLQXDvKIdyiNln1TOSyUsXnTYQK97
DsY6tmmO9J75Y//yXw8W2Z4Jw37yGB90QP5K3NVhpDfUtanWWk1KAn47Y82bl3Js
Ke0/QxhZuM6MRE8EJIDFxNbq9Ksz03iVIGF6NrQinMvcrD3cMIHjAUFjpqR0ZSO9
hIyCAlowDH+eCYQFBvaKn+JzdJcxZbfkew2bK3B8WzhKaqa0ZPhKqjhIgD9KXG3k
8hHj0zfDmjkZlELeRBqvKTSQlKA57mYu5uQCbgFkc2GV+BlXtEcgobJTdizqtK6z
/7UM4Mkqm2IAOCqx0OYUZ5q90RFbvBxvurf94HQH20EAkYOZegw=
=9NOP
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to