Crashes on Umlaut (UNICODE) on smart channel --show
Bug #243986 reported by
Rehan Khan
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Smart Package Manager |
New
|
Undecided
|
Unassigned |
Bug Description
Imported: http://
Reason for Import: Review Issue. Unicode/ascii issue. Can this be fixed?
To post a comment you must log in.
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/interface s/gtk/interacti ve.py",
line 180, in callback
exec code in globals
File "<callback>", line 1, in <module>
File "/usr/lib64/ python2. 5/site- packages/ smart/interface s/gtk/interacti ve.py", commitTransacti on(transaction, confirm=confirm):
line 424, in applyChanges
if self._ctrl.
File "/usr/lib64/ python2. 5/site- packages/ smart/control. py", line 502, in geSet(trans. getChangeSet( ), caching, confirm)
commitTransaction
return self.commitChan
File "/usr/lib64/ python2. 5/site- packages/ smart/control. py", line 560, in ).commit( pmcs, pkgpaths)
commitChangeSet
pmclass(
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, _process_ rpmout( )
in __call__
self.
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 sys.argv[ 1:]) opts.command, opts.argv) python2. 4/site- packages/ smart/interface .py", line 53, in run main(self. _ctrl, opts) python2. 4/site- packages/ smart/commands/ channel. py", line 305, python2. 4/codecs. py", line 178, in write
Traceback (most recent call last):
File "/usr/bin/smart", line 194, in ?
main(
File "/usr/bin/smart", line 167, in main
exitcode = iface.run(
File "/usr/lib/
result = _command.
File "/usr/lib/
in main
print desc
File "/usr/lib/
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