Bug#871584: atk_text_get_get() return value incorrect after multbyte character

Raphaël POITEVIN rpoitevin at hypra.fr
Wed Aug 9 15:56:26 UTC 2017


Package:  Firefox
Version: 54.0-2
Tags: a11y upstream
Owner: bugs at hypra.fr
User: bugs at hypra.fr
Usertags: hypra
Forwarded: https://bugzilla.mozilla.org/show_bug.cgi?id=1346535

DESCRIPTION FROM UPSTREAM:

> "Steps to reproduce:
>
> 1. Load data:text/html;charset=utf-8,<div>Hello %F0%9F%92%97 world</div>
>
> 2. Use Accerciser to find the accessible object corresponding with the 
> <div> element.
>
> 3. In the ipython console, type the following:
>
> -----
> text = acc.queryText()
> allText = text.getText(0,-1)
> ["%s %s" % (allText[i], text.getText(i, i+1)) for i in 
> range(len(allText))]
> -----
>
> Expected results: The values would match.
>
> Actual results: The values match only until the multibyte character is 
> reached. It seems like the get text implementation is assuming 
> single-byte chars (see example output below). Also note that 
> performing the same test using the Gedit text editor works as expected.
>
> ['H H',
>  'e e',
>  'l l',
>  'l l',
>  'o o',
>  '   ',
>  '"
>
> -- 
> Logo Hypra 	RAPHAËL POITEVIN
> FORMATEUR / AGENT DE SUPPORT
> 102, rue des poissonniers, 75018, Paris
> Tel : +331 84 73 06 61 <tel:+33184730661> Dir : +339 72 49 77 48 
> <tel:+33972497748>
> rpoitevin at hypra.fr <mailto:rpoitevin at hypra.fr>
> www.hypra.fr <http://www.hypra.fr/>
> Facebook Hypra <https://www.facebook.com/hyprasoftware/> Twitter Hypra 
> <https://twitter.com/Hypra_>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-mozilla-maintainers/attachments/20170809/b94a26a1/attachment.html>


More information about the pkg-mozilla-maintainers mailing list