Project

General

Profile

Anomalie #8394

Problème apt-eole en mode conteneur.

Added by Philippe Caseiro almost 6 years ago. Updated almost 6 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Category:
-
Start date:
06/18/2014
Due date:
07/04/2014
% Done:

100%

Estimated time:
1.00 h
Spent time:
Distribution:
EOLE 2.4

Description

Pour reproduire :

  • lancer apt-eole update sur un amonecole 2.4
Hit http://eole.ac-dijon.fr precise/multiverse TranslationIndex
Done http://test-eole.ac-dijon.fr eole-2.4-unstable/main amd64 2014-06-18-1020.59.pdiff
Done http://test-eole.ac-dijon.fr eole-2.4-unstable/main amd64 2014-06-18-1020.59.pdiff
Done http://test-eole.ac-dijon.fr eole-2.4-unstable/main i386 2014-06-18-1020.59.pdiff
Done downloading
apt-eole - E:Method rred has died unexpectedly!, E:Sub-process rred received a segmentation fault.
Traceback (most recent call last):
  File "/usr/sbin/apt-eole", line 20, in <module>
    apt_cli()
  File "/usr/lib/python2.7/dist-packages/pyeole/pkg.py", line 302, in apt_cli
    cli_log.error("{0}".format(err.message))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 2: ordinal not in range(128)

Associated revisions

Revision 4902ad83 (diff)
Added by Joël Cuissinat almost 6 years ago

Ajout et utilisation de la fonction pyeole.encode.normalize

Fixes #8394 @1h

Revision 0e7b951e (diff)
Added by Joël Cuissinat almost 6 years ago

Tests unitaires sur pyeole.encode

Ref #8394 @30m

History

#1 Updated by Daniel Dehennin almost 6 years ago

  • Project changed from creole to python-pyeole
  • Due date set to 06/20/2014
  • Status changed from Nouveau to Accepté
  • Assigned To set to Daniel Dehennin
  • Start date set to 06/18/2014
  • Estimated time set to 1.00 h
  • Distribution changed from EOLE 2.3 to EOLE 2.4

Il s’agit d’un problème de chaîne de format qui est inutile.

Pour reproduire simplement:

root@amonecole-2.4:~# sed -i '286 i \        raise SystemError(u"Une exception avec des caractères unicodes: ☠ ðþ")' /usr/share/pyshared/pyeole/pkg.py
root@amonecole-2.4:~# apt-eole update
Traceback (most recent call last):
  File "/usr/sbin/apt-eole", line 20, in <module>
    apt_cli()
  File "/usr/lib/python2.7/dist-packages/pyeole/pkg.py", line 303, in apt_cli
    cli_log.error("{0}".format(err.message))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe8' in position 29: ordinal not in range(128)

#2 Updated by Joël Cuissinat almost 6 years ago

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

#3 Updated by Joël Cuissinat almost 6 years ago

  • Parent task deleted (#8326)

#4 Updated by Joël Cuissinat almost 6 years ago

  • Due date changed from 06/20/2014 to 07/04/2014

#5 Updated by Joël Cuissinat almost 6 years ago

  • Status changed from Résolu to Fermé

Exemple OK (en descendant d'une ligne !).

Also available in: Atom PDF