Project

General

Profile

Anomalie #6165

pb d'encoding dans le message de log du gestionnaire de paquet

Added by Gwenael Remond over 10 years ago. Updated over 10 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Category:
-
Start date:
09/30/2013
Due date:
10/04/2013
% Done:

100%

Spent time:
Distribution:
EOLE 2.4

Description

root@eolebase:/etc/apt# apt-eole install era
Running install for root
Install: era.
Failed http://eole.ac-dijon.fr/eole/ eole-2.4-unstable/main era all 2.4.0-5
Done downloading            
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pyeole/loghandlers.py", line 92, in emit
    message = self.format(record)
  File "/usr/lib/python2.7/dist-packages/pyeole/loghandlers.py", line 172, in format
    message = logging.StreamHandler.format(self, record)
  File "/usr/lib/python2.7/logging/__init__.py", line 723, in format
    return fmt.format(record)
  File "/usr/lib/python2.7/logging/__init__.py", line 467, in format
    s = self._fmt % record.__dict__
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 90: ordinal not in range(128)
Logged from file pkg.py, line 251

Associated revisions

Revision 7a55dac5 (diff)
Added by Daniel Dehennin over 10 years ago

Passage du gestionnaire de paquet en unicode

Le passage en unicode des objets « Exceptions() » ne fonctionne pas, il
ne faut donc passer que le message de l’exception

  • pyeole/pkg.py: Passage des chaînes de caractères en unicode.
    Passer les messages des exceptions aux fonctions de « log ».

Fixes: #6165 @45m

History

#1 Updated by Daniel Dehennin over 10 years ago

  • Due date set to 10/04/2013
  • Status changed from Nouveau to Accepté
  • Start date set to 09/30/2013

#2 Updated by Daniel Dehennin over 10 years ago

  • Status changed from Accepté to Résolu
  • % Done changed from 0 to 100

#3 Updated by Daniel Dehennin over 10 years ago

  • Subject changed from pb d'encoding dans le message de log to pb d'encoding dans le message de log du gestionnaire de paquet

#4 Updated by Joël Cuissinat over 10 years ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF