Your message dated Mon, 18 Feb 2008 20:47:16 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#435853: fixed in pymsnt 0.11.3-1
has caused the Debian Bug report #435853,
regarding pymsnt: utf-8 codec unable to decoded personal status message
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.)


-- 
435853: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=435853
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: pymsnt
Version: 0.11.2-3
Severity: important

Hi,
I'm experiencing some problems with pymsnt and the utf-8 decoder:

[2007-08-03 18:15:00] INFO :: [EMAIL PROTECTED] ::  :: contactPersonalChanged 
:: msn.msnw.NotificationClient :: {'personal': 'In qualche caso, la distinzione 
tra un ammasso globulare ed uno galattico pu\xf2 non risultare del tutto 
immediata:', 'self': 'instance', 'userHandle': '[EMAIL PROTECTED]'}
[2007-08-03 18:15:00] INFO :: [EMAIL PROTECTED] ::  :: contactStatusChanged :: 
glue.LegacyConnection :: {'remoteUser': '[EMAIL PROTECTED]', 'self': 'instance'}
[2007-08-03 18:15:00] Traceback (most recent call last):
          File "/usr/lib/python2.4/site-packages/twisted/python/log.py", line 
53, in callWithLogger
            return callWithContext({"system": lp}, func, *args, **kw)
          File "/usr/lib/python2.4/site-packages/twisted/python/log.py", line 
38, in callWithContext
            return context.call({ILogContext: newCtx}, func, *args, **kw)
          File "/usr/lib/python2.4/site-packages/twisted/python/context.py", 
line 59, in callWithContext
            return self.currentContext().callWithContext(ctx, func, *args, **kw)
          File "/usr/lib/python2.4/site-packages/twisted/python/context.py", 
line 37, in callWithContext
            return func(*args,**kw)
        --- <exception caught here> ---
          File 
"/usr/lib/python2.4/site-packages/twisted/internet/pollreactor.py", line 164, 
in _doReadOrWrite
            why = selectable.doRead()
          File "/usr/lib/python2.4/site-packages/twisted/internet/tcp.py", line 
348, in doRead
            return self.protocol.dataReceived(data)
          File "/usr/lib/python2.4/site-packages/twisted/protocols/basic.py", 
line 240, in dataReceived
            return self.rawDataReceived(data)
          File "/usr/share/pymsnt/src/legacy/msn/msn.py", line 842, in 
rawDataReceived
            if not self.checkMessage(m):
          File "/usr/share/pymsnt/src/legacy/msn/msn.py", line 1081, in 
checkMessage
            self._gotUBX(message)
          File "/usr/share/pymsnt/src/legacy/msn/msn.py", line 1060, in _gotUBX
            self.contactPersonalChanged(message.userHandle, personal)
          File "/usr/share/pymsnt/src/legacy/msn/msnw.py", line 447, in 
contactPersonalChanged
            self.factory.msncon.contactStatusChanged(userHandle)
          File "/usr/share/pymsnt/src/legacy/glue.py", line 486, in 
contactStatusChanged
            status = msnContact.personal.decode("utf-8")
          File "encodings/utf_8.py", line 16, in decode

        exceptions.UnicodeDecodeError: 'utf8' codec can't decode bytes in 
position 76-79: invalid data

[2007-08-03 18:15:00] <twisted.internet.tcp.Connector instance at 0x40b6856c> 
will retry in 2 seconds
[2007-08-03 18:15:00] Stopping factory <legacy.msn.msn.NotificationFactory 
instance at 0x40b688ac>

this is probably because glue.py is not using the "errors" argument to
string.decode() (see http://docs.python.org/lib/string-methods.html) which was
introduced in 2.3.

I am not sure about the proper fix here, msnContact.personal.decode("utf-8",
"ignore") does the trick, although "replace" looks saner. (I'm currently using 
"replace")

thanks,
filippo

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (700, 'stable'), (650, 'testing'), (500, 'proposed-updates')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.20.3-bytemark-uml-2
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages pymsnt depends on:
ii  adduser                  3.102           Add and remove users and groups
ii  python                   2.4.4-2         An interactive high-level object-o
ii  python-central           0.5.12          register and build utility for Pyt
ii  python-crypto            2.0.1+dfsg1-1.2 cryptographic algorithms and proto
ii  python-pyopenssl         0.6-2.3         Python wrapper around the OpenSSL 
ii  python-twisted           2.4.0-3         Event-based framework for internet

Versions of packages pymsnt recommends:
ii  python-imaging                1.1.5-11   Python Imaging Library

-- no debconf information


--- End Message ---
--- Begin Message ---
Source: pymsnt
Source-Version: 0.11.3-1

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

pymsnt_0.11.3-1.diff.gz
  to pool/main/p/pymsnt/pymsnt_0.11.3-1.diff.gz
pymsnt_0.11.3-1.dsc
  to pool/main/p/pymsnt/pymsnt_0.11.3-1.dsc
pymsnt_0.11.3-1_all.deb
  to pool/main/p/pymsnt/pymsnt_0.11.3-1_all.deb
pymsnt_0.11.3.orig.tar.gz
  to pool/main/p/pymsnt/pymsnt_0.11.3.orig.tar.gz



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.
Sam Morris <[EMAIL PROTECTED]> (supplier of updated pymsnt 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: SHA1

Format: 1.7
Date: Sat, 16 Feb 2008 12:58:55 +0000
Source: pymsnt
Binary: pymsnt
Architecture: source all
Version: 0.11.3-1
Distribution: unstable
Urgency: low
Maintainer: Sam Morris <[EMAIL PROTECTED]>
Changed-By: Sam Morris <[EMAIL PROTECTED]>
Description: 
 pymsnt     - MSN transport for Jabber
Closes: 427075 428555 435853
Changes: 
 pymsnt (0.11.3-1) unstable; urgency=low
 .
   * New upstream release.
     - Fixes decoding of non-utf8 status messages (closes: #435853).
   * Add fix_server_challange.patch to work around a change, made in Python
     2.5, that affects amd64 systems. Thanks Drew Hess and Andy Price (closes:
     #428555).
   * Note the MSN servers' use of the Don't Fragment bit. Thanks Luca Corti
     (closes: #427075).
   * Rename 130_twisted_2.5.patch to 130_twisted_2.4.patch: upstream now assumes
     twisted 2.5 is available, so we need to fall back to 2.4.
   * Add Homepage field to control file.
   * Update watch file to new URL.
   * Add XS-Dm-Upload-Allowed to control fields.
   * Update to policy 3.7.3 (no changes).
Files: 
 de2dae3cbe6b19c5247d2878949a6405 744 net optional pymsnt_0.11.3-1.dsc
 e74049fb1bfae59846b1be3d4ef80299 162549 net optional pymsnt_0.11.3.orig.tar.gz
 82e737d3996434f374a6bb46096b6799 7148 net optional pymsnt_0.11.3-1.diff.gz
 6ccf5d0f90ad789fa6120f30e106673e 163866 net optional pymsnt_0.11.3-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHuey4qbb3MLg9dhwRAsWFAJ4vExnHnhKpdm14cKF2T3NVGTCgpgCgsWdd
iUe/z6tRB42cJZNH4JxRiLQ=
=yPt0
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to