Bug#686361: Unable to load session ('ascii' codec can't encode byte 0xc2...)
Pietro Battiston
me at pietrobattiston.it
Fri Aug 31 15:35:29 UTC 2012
Package: gedit-plugins
Version: 3.4.0-1
Severity: important
Tags: upstream
I saved a session with the "session saver" plugin. When I start gedit, I see
the following:
Traceback (most recent call last):
File "/usr/lib/gedit/plugins/sessionsaver/__init__.py", line 67, in
do_activate
self._insert_menu()
File "/usr/lib/gedit/plugins/sessionsaver/__init__.py", line 118, in
_insert_menu
self._update_session_menu()
File "/usr/lib/gedit/plugins/sessionsaver/__init__.py", line 84, in
_update_session_menu
_("Recover '%s' session") % session.name,
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 2: ordinal
not in range(128)
.... and my saved session doesn't show up in the list.
The thing I don't understand is that my session is called "galeryremote",
without any strange character.
Anyway, there is a simple fix for this behaviour, which consists in patching
/usr/lib/gedit/plugins/sessionsaver/__init__.py in the following way:
84c84
< _("Recover '%s' session") % session.name,
---
> _("Recover '%s' session") %
str(session.name),
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (650, 'testing'), (600, 'unstable'), (500, 'stable-updates'), (500, 'stable'), (400, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.2.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages gedit-plugins depends on:
ii dconf-gsettings-backend [gsettings-backend] 0.12.1-2
ii gedit 3.4.2-1
ii gir1.2-glib-2.0 1.32.1-1
ii gir1.2-gtk-3.0 3.4.2-3
ii gir1.2-gtksource-3.0 3.4.2-1
ii gir1.2-gucharmap-2.90 1:3.4.1.1-2
ii gir1.2-pango-1.0 1.30.0-1
ii gir1.2-peas-1.0 1.4.0-2
ii gir1.2-vte-2.90 1:0.32.2-1
ii libatk1.0-0 2.4.0-2
ii libc6 2.13-35
ii libcairo-gobject2 1.12.2-2
ii libcairo2 1.12.2-2
ii libffi5 3.0.10-3
ii libgdk-pixbuf2.0-0 2.26.1-1
ii libgirepository-1.0-1 1.32.1-1
ii libglib2.0-0 2.32.3-1
ii libgtk-3-0 3.4.2-3
ii libgtksourceview-3.0-0 3.4.2-1
ii libpango1.0-0 1.30.0-1
ii libpeas-1.0-0 1.4.0-2
ii python 2.7.3~rc2-1
ii python2.7 2.7.3~rc2-2.1
gedit-plugins recommends no packages.
Versions of packages gedit-plugins suggests:
pn zeitgeist-datahub <none>
-- no debconf information
More information about the pkg-gnome-maintainers
mailing list