Issue74

Project smart
Title Crashes on Umlaut (UNICODE) on smart channel --show
Priority urgent Status resolved
Superseder Nosy List dfarning, luizluca, mvo, rasker, s4504kr
Assigned To rasker Topics

Created on 2006-01-09.18:55:28 by s4504kr, last changed 2008-06-29.15:27:26 by rasker.

Files
File name Uploaded Type Edit Remove
tresc-ntp-1.0-0.4.noarch.rpm luizluca, 2007-03-15.15:50:37 application/x-rpm
Messages
msg1357 (view) Author: rasker Date: 2008-06-29.15:27:26
Exported: https://bugs.launchpad.net/smart/+bug/243986
Reason for Export:  Review Issue. Unicode/ascii issue. Can this be fixed?
msg1126 (view) Author: luizluca Date: 2007-03-28.21:10:35
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
History
Date User Action Args
2008-06-29 15:27:27raskersetstatus: testing -> resolved
nosy: + rasker
messages: + msg1357
assignedto: rasker
2007-03-28 21:10:37luizlucasetmessages: + msg1126
2007-03-15 15:50:38luizlucasetfiles: + tresc-ntp-1.0-0.4.noarch.rpm
nosy: mvo, dfarning, s4504kr, luizluca
messages: + msg1119
2007-03-15 15:48:21luizlucasetnosy: + luizluca
messages: + msg1118
2006-11-20 21:06:19dfarningsetstatus: need-info -> testing
nosy: + dfarning
messages: + msg962
2006-06-14 16:57:52mvosetstatus: unread -> need-info
nosy: + mvo
messages: + msg548
2006-01-18 00:25:19netmasklinkissue75 superseder
2006-01-09 18:55:39s4504krcreate