Attaching a better approach then the currently broken one.

Instead of using unicode in Python 2, keep bytes there. This will work
all the time, because those objects do not care about encoding at all.
An additional unicode() is provided to decode an entry, considering it
as UTF-8.

In Python 3, open the files in UTF-8, and provide a bytes() method to
encode them as UTF-8 again.

Please note that this bug does not happen if you do not run programs in
the non-unicode C locale. If you want to interface with utf-8 files in a
language-agnostic environment, use the C.UTF-8 locale. Other apps will
break just as well.

** Patch added: "unicode.diff"
   
https://bugs.launchpad.net/ubuntu/+source/python-apt/+bug/1069019/+attachment/4030998/+files/unicode.diff

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1069019

Title:
  [software-properties-gtk] can not delete, enable or modify any
  software source with non-ASCII characters in the comment

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-apt/+bug/1069019/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to