pylint #48066 pylint crashes when redirecting output containing non-ascii characters [resolved]

I'm forwarding http://bugs.debian.org/598482

$ cat test.py
#-*-coding:iso-8859-1-*-
class test:
   def __init__ (self,dir) :
       testString = u"répertoire :\n%s !"%dir

$ pylint -f parseable test.py > test.txt
No config file found, using default configuration
Traceback (most recent call last):
  File "/usr/bin/pylint", line 4, in 
    lint.Run(sys.argv[1:])
  File "/usr/lib/pymodules/python2.6/pylint/lint.py", line 856, in __init__
    linter.check(args)
  File "/usr/lib/pymodules/python2.6/pylint/lint.py", line 488, in check
    self.check_astng_module(astng, walker, rawcheckers)
  File "/usr/lib/pymodules/python2.6/pylint/lint.py", line 563, in
check_astng_module
    walker.walk(astng)
  File "/usr/lib/pymodules/python2.6/pylint/utils.py", line 516, in walk
    self.walk(child)
  File "/usr/lib/pymodules/python2.6/pylint/utils.py", line 516, in walk
    self.walk(child)
  File "/usr/lib/pymodules/python2.6/pylint/utils.py", line 516, in walk
    self.walk(child)
  File "/usr/lib/pymodules/python2.6/pylint/utils.py", line 513, in walk
    cb(astng)
  File "/usr/lib/pymodules/python2.6/pylint/checkers/format.py", line 317, in
visit_default
    self.add_message(msg_def[0], node=node, args=msg_def[1])
  File "/usr/lib/pymodules/python2.6/pylint/checkers/__init__.py", line 92, in
add_message
    self.linter.add_message(msg_id, line, node, args)
  File "/usr/lib/pymodules/python2.6/pylint/utils.py", line 274, in add_message
    self.reporter.add_message(msgid, (path, module, obj, line or 1), msg)
  File "/usr/lib/pymodules/python2.6/pylint/reporters/text.py", line 97, in
add_message
    self.writeln(self.line_format % locals())
  File "/usr/lib/pymodules/python2.6/pylint/reporters/__init__.py", line 55, in
writeln
    print >> self.out, string
UnicodeEncodeError: 'ascii' codec can't encode characters in position 86-87:
ordinal not in range(128)

when I remove encoding specification at the beginning of the file, the problem
vanishes but I get PyLint error relative to PEP263 (non ascii characters and no
encoding specification).
prioritynormal
typebug
done in0.21.4
load0.100
load left0.000
closed by<not specified>