-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash received by inputting Platform Dependent character in PowerShell #949
Comments
Environment dataPS version: 5.1.18362.145 Steps to reproduce or exception reportI ran these command and I know for a fact that few of the returned group contains unicode characters)
c l s Enter Exception: |
This is because the characters For those characters, even if we change the file encoding to I think the best PSReadLine can do here is to write out an error to let the user know that history saving failed because of the invalid Unicode character. |
This module corrupts non-BMP characters, in addition to reporting error for them. Environment data
Steps to reproduce or exception reportTrying to input
After the above message:
|
Seems to be same issue #1282 Emoji inserted by win + . |
I got the same error when PS D:> echo '�' Oops, something went wrong. Please report this bug with the details below. EnvironmentPSReadLine: 2.0.0
Exception
|
Does any1 know, if there was some progress? |
@BananaAcid Sorry, no work has been done in this area yet. But I'm moving this issue higher in my to-do list as there are more and more similar reports. |
Unclear if this is helpful at this point since the exception doesn't seem to offer anything new. However, here's one with an upside down smiley. 🙃 Happens in both Windows Terminal, and in pwsh.exe �### Environment
Exception
|
I'm going to use the newer issue #2358 to track this emoj problem, which contains additional information that's useful to our investigation. |
Environment data
PS version: 5.1.18362.1
PSReadline version: 2.0.0-beta2
os: 10.0.18362.236 (WinBuild.160101.0800)
PS file version: 10.0.18362.236 (WinBuild.160101.0800)
BufferWidth: 182
BufferHeight: 46
Steps to reproduce or exception report
I saw crash by inputing a Platform Dependent character (example 🍣) and one backspace, then enter.
The crash log is below.
The text was updated successfully, but these errors were encountered: