Crashes on Umlaut (UNICODE) on smart channel --show

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

Bug Description

Imported: http://tracker.labix.org/issue74
Reason for Import: Review Issue. Unicode/ascii issue. Can this be fixed?

Revision history for this message
Rehan Khan (rasker) wrote :

The problem is that the package executes a command that returns UNICODE text.
The terminal is ready to accept it but not smart

msg1119 (view) Author: luizluca Date: 2007-03-15.15:50:37

Here is a package with problems in smart

msg1118 (view) Author: luizluca Date: 2007-03-15.15:48:19

I still got Unicode errors. Can't smart just remove the strange characters and
retry the operation? It will miss a character but not the operation.

smart 0.50 from suse guru package

Traceback (most recent call last):

  File "/usr/lib64/python2.5/site-packages/smart/interfaces/gtk/interactive.py",
line 180, in callback
    exec code in globals

  File "<callback>", line 1, in <module>

  File "/usr/lib64/python2.5/site-packages/smart/interfaces/gtk/interactive.py",
line 424, in applyChanges
    if self._ctrl.commitTransaction(transaction, confirm=confirm):

  File "/usr/lib64/python2.5/site-packages/smart/control.py", line 502, in
commitTransaction
    return self.commitChangeSet(trans.getChangeSet(), caching, confirm)

  File "/usr/lib64/python2.5/site-packages/smart/control.py", line 560, in
commitChangeSet
    pmclass().commit(pmcs, pkgpaths)

  File "/usr/lib64/python2.5/site-packages/smart/backends/rpm/pm.py", line 270,
in commit
    probs = ts.run(cb, None)

  File "/usr/lib64/python2.5/site-packages/smart/backends/rpm/pm.py", line 338,
in __call__
    self._process_rpmout()

  File "/usr/lib64/python2.5/site-packages/smart/backends/rpm/pm.py", line 323,
in _process_rpmout
    output = self.rpmout.read()

  File "/usr/lib64/python2.5/codecs.py", line 418, in read
    newchars, decodedbytes = self.decode(data, self.errors)

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 in position 18: ordinal
not in range(128)

msg962 (view) Author: dfarning Date: 2006-11-20.21:06:19

Is this still an issue? I can not reproduce on ubuntu 6.10. Does python handle
Unicode better now? Ubuntu 6.10 runs python 2.4.

Dave

msg548 (view) Author: mvo Date: 2006-06-14.16:57:51

Can you please try the latest svn version of smart? It should fix some encoding
issues.

Cheers,
 Michael

msg220 (view) Author: s4504kr Date: 2006-01-09.18:55:25

I have create a channel with smart --gui, where the description contains a umluat.

When I enter smart channel --show I will ge the following traceback:

[pclinux@myhome ~]$ smart channel --show
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/channel.py", line 305,
in main
    print desc
  File "/usr/lib/python2.4/codecs.py", line 178, in write
    data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 40: ordinal
not in range(128)
[pclinux@myhome ~]$

User version:0.41

User Distribution: Fedora Core Linux 4

Revision history for this message
Rehan Khan (rasker) wrote :
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.