Bugzilla – Bug 504551
TrackBar text interface returns text value prefixed with UTF-8 looking bytes
Last modified: 2009-05-16 04:34:19 UTC
PROBLEM STATEMENT I am a bit confused, but it looks like I am getting a UTF-8 value back from the text interface of a TrackBar's "slider" accessible. The value I expect is "1". I am getting back a "1" in a string, but it appears to be prefixed with some UTF-8 bytes. The value I am getting is '\xe2\x80\x8e1', that is, a "1" prefixed with "\xe2\x80\x8e". Obviously, my test fails because '1' != '\xe2\x80\x8e1'. "\xe2\x80\x8e" alone (without the "1", appears to be a blank space or something). REPRO 1. Run Accerciser and open the "IPython Console" tab 2. Run uia2atk/test/samples/trackbar.py 3. In Accerciser, browse to and select either of the "slider" accessibles of the trackbar.py (ipy) application 4. In Accerciser's IPython console, do the following: ti = acc.queryText() ti.getText(0, ti.characterCount) RESULTS '\xe2\x80\x8e1' is printed to the IPython console EXPECTED RESULTS I am expecting just a '1'
Oops, Ray already logged this bug. *** This bug has been marked as a duplicate of bug 484189 ***