Last modified: 2013-07-15 22:45:03 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T53140, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 51140 - VisualEditor: Typing immediately after link introduces pawn (♙) if link is preceded by multibyte text
VisualEditor: Typing immediately after link introduces pawn (♙) if link is pr...
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
Data Model (Other open bugs)
unspecified
All All
: High normal
: VE-deploy-2013-07-18
Assigned To: Ed Sanders
:
: 51112 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-10 22:33 UTC by Oliver Keyes
Modified: 2013-07-15 22:45 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Oliver Keyes 2013-07-10 22:33:34 UTC
Seems to happen specifically in https://en.wikipedia.org/wiki/Jabhala?veaction=edit for no apparent reason; try it.
Comment 1 Bill Skaggs 2013-07-10 23:13:58 UTC
In case it may be helpful, the character produced is a white chess pawn, unicode 0x2659 (html &#9817).  This character is produced if any character is added immediately after any of the three links in the first sentence, but not if a character is added after a link in the second sentence.  If the Hindi text in the first sentence is deleted, then characters entered after a link produce the correct result.
Comment 2 Roan Kattouw 2013-07-10 23:15:21 UTC
Turns out that it happens when inserting any character after the link, but only at the position immediately after the link (so the second character isn't pawned because there's something (the first pawn) between it and the link), and only if there is multibyte text in the same paragraph preceding the link.

The article's first and only paragraph starts with "Jabhala (Hindi:जभाला) is..." and so this bug affects every link on that article. But it doesn't affect any links before जभाला (there aren't any right now but you can create them), and if you use Enter to break the paragraph after the Hindi text, it doesn't affect any links in the second paragraph either.

Assigning to Ed because this is a multibyte issue.
Comment 3 Bill Skaggs 2013-07-10 23:36:47 UTC
Further observations:  the "pawn" has utf-8 hex code E2 99 99.  The multibyte characters that provoke this behavior are either of:

devangiri letter LA, unicode 0x2354, utf-8 hex E0 A4 B2
devangiri letter BHA, unicode 0x2349, utf-8 hex E0 A4 AD
Comment 4 Gerrit Notification Bot 2013-07-15 22:00:28 UTC
Change 73874 had a related patch set uploaded by Esanders:
Replace text strings with grapheme arrays in onContentChange

https://gerrit.wikimedia.org/r/73874
Comment 5 Gerrit Notification Bot 2013-07-15 22:10:21 UTC
Change 73874 merged by jenkins-bot:
Replace text strings with grapheme arrays in onContentChange

https://gerrit.wikimedia.org/r/73874
Comment 6 James Forrester 2013-07-15 22:10:53 UTC
Fixed and merged.
Comment 7 Ed Sanders 2013-07-15 22:45:03 UTC
*** Bug 51112 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links