Page MenuHomePhabricator

Bug in Chrome with Cyrillic strings in CodeEditor, cursor position shows on the wrong place
Closed, DuplicatePublic

Description

Bug with Cyrillic strings in lua scripts, cursor position shows on the wrong place

Event Timeline

Aklapper changed the task status from Open to Stalled.Aug 16 2018, 3:12 PM

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 Edit Task. 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.

Aklapper added a subscriber: Krinkle.

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

Eugene renamed this task from Bug with Cyrillic strings in lua scripts, cursor position shows on the wrong place to Bug in Chrome with Cyrillic strings in lua scripts, cursor position shows on the wrong place.Aug 16 2018, 5:57 PM

Also see the requests in T202059#4507641

(Is VisualEditor involved at all here?)

I don't think that VisualEditor is involved, it is turned off in my settings.

the issue is also present with Unicode text consisting of more then 1 byte per character

Could someone merge them?

You can. :) Click Edit Related TasksClose As Duplicate.

Eugene renamed this task from Bug in Chrome with Cyrillic strings in lua scripts, cursor position shows on the wrong place to Bug in Chrome with Cyrillic strings in CodeEditor, cursor position shows on the wrong place.Aug 17 2018, 8:12 AM