Encoding mismatch when mousetweaks is missing

Bug #958385 reported by marmuta
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Onboard
Fix Released
Undecided
Unassigned
onboard (Ubuntu)
Fix Released
Medium
Micah Gersten
Oneiric
Won't Fix
Undecided
Vibhav Pant
Precise
Fix Released
Medium
Micah Gersten

Bug Description

Onboard fails to run for certain locales when mousetweaks is missing.

From question #190987:
i want run onboard on laptop and when i start it crashed with the follow message:

siefke@sabayon /usr/local/src $ onboard
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/Onboard/OnboardGtk.py", line 90, in do_activate
    self.init()
  File "/usr/lib/python2.7/site-packages/Onboard/OnboardGtk.py", line 105, in init
    config.init()
  File "/usr/lib/python2.7/site-packages/Onboard/Config.py", line 211, in init
    ConfigObject.__init__(self)
  File "/usr/lib/python2.7/site-packages/Onboard/ConfigUtils.py", line 53, in __init__
    self._init_keys()
  File "/usr/lib/python2.7/site-packages/Onboard/Config.py", line 351, in _init_keys
    _logger.warning(str(e))
  File "/usr/lib/python2.7/site-packages/Onboard/Exceptions.py", line 43, in __str__
    message = self._message + "\n"
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 18: ordinal not in range(128)

siefke@sabayon /usr/local/src $ uname -a
Linux sabayon 3.2.0-sabayon #1 SMP Sat Feb 11 12:54:37 UTC 2012 i686 Intel(R) Celeron(R) M processor 1.40GHz GenuineIntel GNU/Linux

Related branches

Revision history for this message
marmuta (marmuta) wrote :

I'll look into it.

As a workaround you could try to run onboard as
$ LANGUAGE=en onboard

or perhaps install mousetweaks if it is easily available on sabayon.

Changed in onboard:
status: New → Confirmed
Revision history for this message
marmuta (marmuta) wrote :

Fixed in trunk.

Changed in onboard:
status: Confirmed → Fix Committed
Revision history for this message
Micah Gersten (micahg) wrote :

Could you please tell me which commit this is so I can backport the fix?

Revision history for this message
GridCube (gridcube) wrote :

micahg, this bug was seen at the 20120323 release of xubuntu 12.04, if thats what you're asking

Revision history for this message
marmuta (marmuta) wrote :

Micah, it's this commit:
http://bazaar.launchpad.net/~onboard/onboard/0.91/revision/764

Meanwhile the fix is in the 0.97 branch too and there will be a bugfix release 0.97.1 soon.
I'll ask Francesco to put it in our snapshots PPA.

Revision history for this message
Francesco Fumanti (frafu) wrote :

Revision 771 of trunk that includes the fix has already been in the Snapshots PPA for a few days. But I can also put a package based on the 0.97 branch into the Snapshots PPA if you prefer.

Revision history for this message
Micah Gersten (micahg) wrote :

No, I need to backport the fix into Ubuntu for beta 2, I'll grab revision 764, thanks.

Revision history for this message
Francesco Fumanti (frafu) wrote :

Micah: Thanks for the information.

I decided to nevertheless put a preview of 0.97.1 into the Snapshots PPA for the case that there is somebody else wanting to test it.

tags: added: a11y
Micah Gersten (micahg)
Changed in onboard (Ubuntu):
assignee: nobody → Micah Gersten (micahg)
importance: Undecided → Medium
status: New → In Progress
Changed in onboard (Ubuntu Precise):
milestone: none → ubuntu-12.04-beta-2
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package onboard - 0.97.0-0ubuntu3

---------------
onboard (0.97.0-0ubuntu3) precise; urgency=low

  * Fix string encodings mismatch without mousetweaks; This fixes an issue
    where onboard fails to launch on Xubuntu which doesn't have mousetweaks
    installed by default (LP: #958385)
    - add debian/patches/fix_encoding_mismatch.patch
    - update debian/patches/series
 -- Micah Gersten <email address hidden> Tue, 27 Mar 2012 10:03:51 -0500

Changed in onboard (Ubuntu Precise):
status: In Progress → Fix Released
Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/958385

tags: added: iso-testing
Vibhav Pant (vibhavp)
Changed in onboard (Ubuntu Oneiric):
assignee: nobody → Vibhav Pant (vibhavp)
Changed in onboard:
status: Fix Committed → Fix Released
Revision history for this message
Francesco Fumanti (frafu) wrote :

@Vibhav Pant (vibhavp)
You can find Onboard 0.97.1, that contains the fix to this problem in our Stable PPA for oneiric, precise and quantal:
https://launchpad.net/~onboard/+archive/stable

Revision history for this message
Micah Gersten (micahg) wrote :

@ Francesco Fumanti (frafu)
I think Vibhav was going to try to fix it in oneiric for everyone :)

Revision history for this message
Vibhav Pant (vibhavp) wrote :

@michag: Im working on the fix

Revision history for this message
Vibhav Pant (vibhavp) wrote :

Actually, the version in Ubuntu misses some code that needs to be modified, so I am attaching debdiff for version 0.97.1

Revision history for this message
Micah Gersten (micahg) wrote :

IMHO, we won't upgrade oneiric to 0.97.1. For the record, I am not an SRU team member, so if they approve, we could jump versions. I haven't looked at the diff, but ITSR a lot of changes between 0.96.1 and 0.97

Revision history for this message
marmuta (marmuta) wrote :

FYI and just in case: 0.97.1 didn't get much testing on Oneiric yet. Not that I expect many problems, 0.97.0 was fine before, but better safe than sorry. I'll do that soon.

Revision history for this message
marmuta (marmuta) wrote :

Done testing 0.97.1 in Oneiric. Perhaps it's better to not do an SRU there.

There is one notable regression in unity, to a lesser extent in gnome-shell (Metacity sessions are unaffected):
With window decoration enabled, the keyboard window is lost for good when it's minimized by title bar button. GTK3 doesn't report iconifying there. On Precise something similar can happen, though for different reasons and there is a known workaround.
Fixing this in 0.97.1 would most likely mean a separate code path for Oneric, I'd rather avoid that.

Window decoration is disabled by default, though and everything else seems fine, including auto-show, screen-rotation and unlock screen logic.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

oneiric has seen the end of its life and is no longer receiving any updates. Marking the oneiric task for this ticket as "Won't Fix".

Changed in onboard (Ubuntu Oneiric):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.