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

Bug #244537 reported by Rehan Khan
2
Affects Status Importance Assigned to Milestone
Smart Package Manager
New
Undecided
Unassigned

Bug Description

Imported: http://tracker.labix.org/issue282

Reason: Locale bug. did this ever get fixed?

further details: https://blueprints.launchpad.net/smart/+spec/bug-reporting-migration

msg1076 (view) Author: pasa Date: 2007-01-23.09:20:59

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)
<email address hidden>" 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) <email address hidden>" 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

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.