[issue282] Smart crashes when importing gpg keys with LANG="cs_CZ.UTF-8"

pasa at Labix Tracker tracker at labix.org
Tue Jan 23 01:21:00 PST 2007


New submission from pasa <p.treutner at volny.cz>:

When all packages are downloaded, output looks like:

<pre>Committing transaction...
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 3ab2ce5e
Trying to import the key dc87d14a3ab2ce5e from subkeys.pgp.net...
gpg: požaduji klíč 3AB2CE5E ze hkp server subkeys.pgp.net
gpg: klíč 3AB2CE5E: veřejný klíč "Detlef Reichelt (Packman-RPM-Key)
<detlef at dreichelt.de>" importován
gpg: žádný absolutně důvěryhodný klíč nebyl nalezen
gpg: Celkový počet zpracovaných klíčů: 1
gpg:                  importováno: 1
Traceback (most recent call last):
  File "/usr/bin/smart", line 194, in ?
    main(sys.argv[1:])
  File "/usr/bin/smart", line 167, in main
    exitcode = iface.run(opts.command, opts.argv)
  File "/usr/lib/python2.4/site-packages/smart/interface.py", line 53, in run
    result = _command.main(self._ctrl, opts)
  File "/usr/lib/python2.4/site-packages/smart/commands/upgrade.py", line 198,
in main
    ctrl.commitTransaction(trans, confirm=confirm)
  File "/usr/lib/python2.4/site-packages/smart/control.py", line 505, in
commitTransaction
    return self.commitChangeSet(trans.getChangeSet(), caching, confirm)
  File "/usr/lib/python2.4/site-packages/smart/control.py", line 563, in
commitChangeSet
    pmclass().commit(pmcs, pkgpaths)
  File "/usr/lib/python2.4/site-packages/smart/backends/rpm/pm.py", line 202, in
commit
    if iface.askYesNo(popen_out, False):
  File "/usr/lib/python2.4/site-packages/smart/interfaces/text/interface.py",
line 65, in askYesNo
    res = raw_input(mask % question).strip().lower()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 272:
ordinal not in range(128)</pre>

In English the strange part means:
<pre>gpg: requesting key 3AB2CE5E from hkp server subkeys.pgp.net
gpg: key 3AB2CE5E: "Detlef Reichelt (Packman-RPM-Key) <detlef at dreichelt.de>" not
changed
gpg: Total number processed: 1
gpg:              unchanged: 1</pre>

I've noticed this bug since smart 0.42. Everything works fine if smart is
executed with US locale (LANG="en_US.UTF-8" smart upgrade).

Current configuration:
SUSE 10.1
smart 0.50
python 2.4.2

----------
messages: 1076
nosy: pasa
priority: bug
project: smart
status: unread
title: Smart crashes when importing gpg keys with LANG="cs_CZ.UTF-8"

_______________________________________
Labix issue tracker <tracker at labix.org>
<http://tracker.labix.org/issue282>
_______________________________________



More information about the Smart mailing list