[Mageia-sysadm] rpmlint encoding issue
Michael Scherer
misc at zarb.org
Wed Jan 12 01:15:30 CET 2011
Le mercredi 12 janvier 2011 à 01:09 +0100, Olivier Blin a écrit :
> Hi,
>
> We encounter an encoding error with rpmlint on the locales packages
> (looks not fatal though).
> Misc, do you have an idea about how to fix it?
I would say "port rpmlint to python 3" ( except it can't be done, as it
requires rpm to have python3 binding ).
Otherwise, make sure we use utf8 when running this, not C.
> running check rpmlint on package locales-sk-2.12.1-1.mga1.i586
> Traceback (most recent call last):
> File "/usr/share/rpmlint/rpmlint.py", line 352, in <module>
> main()
> File "/usr/share/rpmlint/rpmlint.py", line 194, in main
> if printAllReasons():
> File "/usr/share/rpmlint/Filter.py", line 107, in printAllReasons
> __print(diag)
> File "/usr/share/rpmlint/Filter.py", line 31, in __print
> print(s.encode(locale.getpreferredencoding(), "replace"))
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 53:
> ordinal not in range(128)
>
--
Michael Scherer
More information about the Mageia-sysadm
mailing list