Bug with Cyrillic strings in lua scripts, cursor position shows on the wrong place
Description
Related Objects
Event Timeline
You can try to edit Cyrillic strings in https://uk.wikipedia.org/w/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Wikidata&action=edit
Hi @Eugene, thanks for taking the time to report this!
Did Krinkle explicitly agree on being the assignee of this task?
Unfortunately this report lacks some information. If you have time and can still reproduce the problem: Please add a more complete description to this report by providing a clear list of specific steps to reproduce the situation, as little details sometimes matter, so that nobody needs to guess how you performed each step, and by describing actual results and by describing expected results after performing the steps to reproduce, plus information about your web browser(s) tested.
You can edit the task description by clicking . Thanks!
@Aklapper I have just added Krinkle myself, I do not know will he agree or not to solve this problem. The bug occurs when you edit lua scripts with Cyrillic strings. For example in https://uk.wikipedia.org/w/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Wikidata&action=edit
If you put cursor inside Cyrillic string and then try to type anything, you will see that typing happend to be 5 or 6 symbols to the left from cursor position.
I do not know will he agree or not to solve this problem.
Ah, thanks. Removing the assignee as it's up to each person what they plan to work on. :)
If you put cursor inside Cyrillic string and then try to type anything, you will see that typing happend to be 5 or 6 symbols to the left from cursor position.
I've set my keyboard to Russian now (sorry :) ) and I entered some text in https://uk.wikipedia.org/w/index.php?title=Модуль:Wikidata&action=edit (which uses CodeEditor for me) in Firefox 61 on Linux. The cursor was always where I expected it. So we need better steps that allow someone else to reproduce.
Please [[ https://www.mediawiki.org/wiki/Help:Locating_broken_scripts | try with safemode enabled ]] and please provide browser and browser version information.
I work with MacOS High Sierra, Chrome Version 68.0.3440.106 (Official Build) (64-bit)
You should type inside the Cyrillic string, for instance "Невідомий тип сутності"
I did that. No problems.
Again: Please try with safemode enabled. Please also try when being logged out in a private browser window; and if possible also with another browser. Thanks!
Oh, in Safari this bug does not occur! But in Chrome it occurs also in Windows and in a private browser window
I found the same ticket!!! https://phabricator.wikimedia.org/T200741 Could someone merge them?
the issue is also present with Unicode text consisting of more then 1 byte per character