KDE: do not crash if there are special chars in the comment of newly added sources

Bug #99944 reported by Michel
4
Affects Status Importance Assigned to Milestone
software-properties (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/softwareproperties/kde/SoftwarePropertiesKDE.py", line 608, in on_edit_clicked
    self.set_modified_sourceslist()
  File "/usr/lib/python2.5/site-packages/softwareproperties/kde/SoftwarePropertiesKDE.py", line 520, in set_modified_sourceslist
    SoftwareProperties.set_modified_sourceslist(self)
  File "/usr/lib/python2.5/site-packages/softwareproperties/SoftwareProperties.py", line 333, in set_modified_sourceslist
    self.save_sourceslist()
  File "/usr/lib/python2.5/site-packages/softwareproperties/SoftwareProperties.py", line 486, in save_sourceslist
    self.sourceslist.save()
  File "/usr/lib/python2.5/site-packages/aptsources/sourceslist.py", line 355, in save
    files[source.file].write(source.str())
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2026' in position 95: ordinal not in range(128)

Revision history for this message
Sebastian Heinlein (glatzor) wrote :

Could you please attach your /etc/apt/sources.list

What did you want to change in the edit dialog?

Changed in software-properties:
status: Unconfirmed → Needs Info
Revision history for this message
Michel (michel-morte) wrote : Re: [Bug 99944] Re: repository manager crash

Sorry, I forgot it.
This was the first and the last time this error appear.
Repository manager crashed when I pasted a comment from a web page in a
third party source software (cinelerra).
The next time I did not add the comment and all was ok.

2007/4/2, Sebastian Heinlein <email address hidden>:
>
> Could you please attach your /etc/apt/sources.list
>
> What did you want to change in the edit dialog?
>
> ** Changed in: software-properties (Ubuntu)
> Status: Unconfirmed => Needs Info
>
> --
> repository manager crash
> https://bugs.launchpad.net/bugs/99944
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for software-properties (Ubuntu) because there has been no activity for 60 days.]

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.