Bug 504551

Summary: TrackBar text interface returns text value prefixed with UTF-8 looking bytes
Product: [Mono] UI Automation Reporter: Brian Merrell <bgmerrell>
Component: Winforms - GeneralAssignee: E-mail List <mono-a11y-bugs>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <mono-a11y-qa>
Severity: Normal    
Priority: P3 - Medium    
Version: Unspecified   
Target Milestone: ---   
Hardware: x86   
OS: openSUSE 11.1   
Whiteboard:
Found By: Integration Test Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Brian Merrell 2009-05-16 04:26:26 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'
Comment 1 Brian Merrell 2009-05-16 04:34:19 UTC
Oops, Ray already logged this bug.

*** This bug has been marked as a duplicate of bug 484189 ***