You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Win7: Cyrillic input with shift partially does not work #798
changed the title [-]Win7: Cyrillic input with shift partially dows not work[/-][+]Win7: Cyrillic input with shift partially does not work[/+]on Nov 7, 2018
Are you changing the layout after starting PowerShell? If so, this might be hard to fix, the api I rely on the determine if Shift is necessary does not honor keyboard layout changes.
Yes, I start PS and press shortcut to change layout. The same version (Beta3) works ok on Linux but does not work on Windows (both 7 and 10)
Moreover, if I change default layout to Russian, (I start PSs with RUS layout) I can't get any russian upper case symbols with shift (at least qwerty line) and even when I switch to English I can't type any English symbols with shift as well!
Seems there should be another PlatformWindows.cs override
The impact of this issue is very high, because multi-layout users switch their layouts literally all the time. I have some file names and content I want to enter into my PowerShell session in my native layout, and so I need to change my layout from time to time without restarting the whole PowerShell session, that's a disaster.
Jason Shirk (@lzybkr), how could we help you with the issue? Could you please share any thoughts on that or show where I could find the code of that problematic API and PSReadLine's usage of that API? I'll be glad to help with the fix.
Just wanted to report that it became worse on the latest nightly build at that point: no matter which layout is active when I start PowerShell 6.1 with PSReadLine, I cannot enter any Cyrillic letters at all: some of the keys result in ? being added to the input and some of them don't work at all.
Will check the build from #822 after it's finished on CI though!
#822 fixes just the problem initially reported here.
The rendering of ? (and it's just a rendering problem, the characters are correct if executed) was introduced by #771, the workaround for now is to run:
There is one additional problem if you start PowerShell with the Cyrillic keyboard - PSReadLine will fail to load, and the only workaround right now is to start PowerShell with a different keyboard.
There is one additional problem if you start PowerShell with the Cyrillic keyboard - PSReadLine will fail to load, and the only workaround right now is to start PowerShell with a different keyboard.
Well, honestly I cannot reproduce that on the latest build (e.g. if I install build from #822). I was able to reproduce that on beta3 though.
Thanks for the tip about [Console]::OutputEncoding, it helped!
The problem exist with EN-US keyboard layout selected on powershell console start.
With Cyrillic keyboard layout (RU-RU) select problem doesn't reproduced, `cause module PSReadLine probably doesn't load properly.
Ilya (@iSazonov) the fix for PSReadLine not starting on non-en-US keyboard layouts is already checked into latest Win10 and should be flighting on latest Insider builds
I'm on 2004 build and still not fixed, PSReadLine version is still 2.0.0
I had to update it manually, and bug is gone
Run this line in PowerShell from administrator: Install-Module PSReadLine -force
Reacted by OZone
Reacted by ertyz, Arsenii A., Nikolai Masson, Ch13, microsoftdealer, Артем, macart and MordorianGuy
Activity
[-]Win7: Cyrillic input with shift partially dows not work[/-][+]Win7: Cyrillic input with shift partially does not work[/+]MVKozlov commentedon Nov 7, 2018
ok
MVKozlov commentedon Nov 7, 2018
Something breaks between beta1 and beta2
lzybkr commentedon Nov 7, 2018
Are you changing the layout after starting PowerShell? If so, this might be hard to fix, the api I rely on the determine if Shift is necessary does not honor keyboard layout changes.
MVKozlov commentedon Nov 7, 2018
Yes, I start PS and press shortcut to change layout. The same version (Beta3) works ok on Linux but does not work on Windows (both 7 and 10)
Moreover, if I change default layout to Russian, (I start PSs with RUS layout) I can't get
anyrussian upper case symbols with shift (at least qwerty line) and even when I switch to English I can't typeanyEnglish symbols with shift as well!Seems there should be another
PlatformWindows.csoverrideForNeVeR commentedon Dec 1, 2018
The impact of this issue is very high, because multi-layout users switch their layouts literally all the time. I have some file names and content I want to enter into my PowerShell session in my native layout, and so I need to change my layout from time to time without restarting the whole PowerShell session, that's a disaster.
Jason Shirk (@lzybkr), how could we help you with the issue? Could you please share any thoughts on that or show where I could find the code of that problematic API and PSReadLine's usage of that API? I'll be glad to help with the fix.
Remove Keys.ShouldInsert
ForNeVeR commentedon Dec 2, 2018
Just wanted to report that it became worse on the latest nightly build at that point: no matter which layout is active when I start PowerShell 6.1 with PSReadLine, I cannot enter any Cyrillic letters at all: some of the keys result in
?being added to the input and some of them don't work at all.Will check the build from #822 after it's finished on CI though!
lzybkr commentedon Dec 2, 2018
#822 fixes just the problem initially reported here.
The rendering of
?(and it's just a rendering problem, the characters are correct if executed) was introduced by #771, the workaround for now is to run:There is one additional problem if you start PowerShell with the Cyrillic keyboard - PSReadLine will fail to load, and the only workaround right now is to start PowerShell with a different keyboard.
ForNeVeR commentedon Dec 2, 2018
Well, honestly I cannot reproduce that on the latest build (e.g. if I install build from #822). I was able to reproduce that on beta3 though.
Thanks for the tip about
[Console]::OutputEncoding, it helped!Remove Keys.ShouldInsert (#822)
mahoune commentedon Jan 21, 2019
We also face this issue on Windows 10 (1809) Version: 10.0.17763 Build 17763.
Preinstalled powershell module PSReadLine verison is 2.0.0
Here's a link to discussion on technet:
https://social.technet.microsoft.com/Forums/ru-RU/8ccdf213-56ca-461e-8ce1-0cc82391dddb/windows-10-1809-10551088108610731083107710841099-1089
The problem exist with EN-US keyboard layout selected on powershell console start.
With Cyrillic keyboard layout (RU-RU) select problem doesn't reproduced, `cause module PSReadLine probably doesn't load properly.
iSazonov commentedon Feb 5, 2019
Steve Lee (@SteveL-MSFT) These is very annoying. Can you share information when fixes is expected for Windows?
SteveL-MSFT commentedon Feb 5, 2019
Ilya (@iSazonov) the fix for PSReadLine not starting on non-en-US keyboard layouts is already checked into latest Win10 and should be flighting on latest Insider builds
iSazonov commentedon Feb 5, 2019
Steve Lee (@SteveL-MSFT) Thanks! Will we get this on WindowsUpdate? For 1809 and Windows 10 Ent 2019 at February or March?
SteveL-MSFT commentedon Feb 21, 2019
Ilya (@iSazonov) for older builds, I think we just need to get another release of PSReadLine to PSGallery
iSazonov commentedon Feb 22, 2019
Steve Lee (@SteveL-MSFT) But it is enterprise LTS versions.
megapro17 commentedon May 22, 2020
I'm on 2004 build and still not fixed, PSReadLine version is still 2.0.0
I had to update it manually, and bug is gone
Run this line in PowerShell from administrator:
Install-Module PSReadLine -force