Your message dated Tue, 03 Oct 2006 17:35:42 +0200
with message-id <[EMAIL PROTECTED]>
and subject line python-cheetah: does not seems to be unicode aware
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: python-cheetah
Version: 0.9.15-5
Severity: wishlist

Hello,

When passing this list of argument to cheetah:

    [(u'ieCapture - the PC cousin of iCapture', 
      u'http://www.danvine.com/iecapture/'), 
     (u'English to French, Italian, and Spanish Dictionary - WordReference.com',
      u'http://www.wordreference.com/'), 
     (u'Archive', u'http://www.archives-archive.com/'), 
     (u'spamgourmet - free disposable email addresses, spam blocking',
      u'http://www.spamgourmet.com/'), 
     (u'D\xe9sinformations.com - Web-journal satirique',
      u'http://www.desinformations.com/')]

cheetah is raising UnicodeEncodeError:

    UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9'
      in position 1: ordinal not in range(128)

probably when filtering "Désinformation". The problematic code is the
following :

    class ReplaceNone(Filter):
        def filter(self, val, **kw):
            
            """Replace None with an empty string.  Reimplement this method if
            you want more advanced filterting."""
            
            if val is None:
                return ''
            return str(val)

Which of course fails !

In my application I settled this bug by encoding all information that
goes to cheetah to utf-8.

But maybe there should be a way to telle cheetah what he must do with
unicode strings.

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-1-k7
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8)

Versions of packages python-cheetah depends on:
ii  python2.3-cheetah             0.9.15-5   text-based template engine and Pyt

-- no debconf information


--- End Message ---
--- Begin Message ---
Hello,

As i have no more information about this bug since a long long time, i'm
closing  the  bug. Feel  free  to  open it  again  if  you have  further
informations...

Regards,
Arnaud Fontaine

Attachment: pgp4pHCZQdwFD.pgp
Description: PGP signature


--- End Message ---

Reply via email to