-
Notifications
You must be signed in to change notification settings - Fork 320
Closed
Labels
Resolution-DuplicateThere's another issue on the tracker that's pretty much the same thing.There's another issue on the tracker that's pretty much the same thing.
Milestone
Description
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.
-----------------------------------------------------------------------
直前 200 個のキー:
h o m e \ $ n a m e ) . V e r s i o n I n f o . F i l e V e r s i o n ) " Enter
Ctrl+Enter Space Space Space Space " B u f f e r W i d t h : Space $ ( [ c o n s o l e ] : : B u f f e r W i d t h ) " Enter
Ctrl+Enter Space Space Space Space " B u f f e r H e i g h t : Space $ ( [ c o n s o l e ] : : B u f f e r H e i g h t ) " Enter
Ctrl+Enter } Enter
Ctrl+c Backspace Backspace Ctrl+l Ctrl+p Ctrl+n Backspace Backspace Backspace Backspace Backspace s u s i Backspace Backspace Backspace Backspace ? ? Enter
Ctrl+c Ctrl+l ? ? Backspace Enter
Enter
Ctrl+c Ctrl+l Ctrl+p Ctrl+p Ctrl+p UpArrow UpArrow UpArrow Enter
UpArrow DownArrow DownArrow DownArrow s u Backspace Backspace Backspace Backspace UpArrow Enter
? ? Backspace Enter
UpArrow UpArrow Enter
UpArrow DownArrow DownArrow DownArrow ? ? Backspace Enter
例外:
System.Text.EncoderFallbackException: インデックス 0 にある Unicode 文字 \uD83C を指定されたコード ページに変換できません。
場所 System.Text.EncoderExceptionFallbackBuffer.Fallback(Char charUnknown, Int32 index)
場所 System.Text.EncoderFallbackBuffer.InternalFallback(Char ch, Char*& chars)
場所 System.Text.UTF8Encoding.GetBytes(Char* chars, Int32 charCount, Byte* bytes, Int32 byteCount, EncoderNLS baseEncoder)
場所 System.Text.EncoderNLS.GetBytes(Char[] chars, Int32 charIndex, Int32 charCount, Byte[] bytes, Int32 byteIndex, Boolean flush)
場所 System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
場所 System.IO.StreamWriter.Dispose(Boolean disposing)
場所 System.IO.TextWriter.Dispose()
場所 Microsoft.PowerShell.PSConsoleReadLine.<>c__DisplayClass81_0.<WriteHistoryRange>b__0()
場所 Microsoft.PowerShell.PSConsoleReadLine.WithHistoryFileMutexDo(Int32 timeout, Action action)
場所 Microsoft.PowerShell.PSConsoleReadLine.MaybeAddToHistory(String result, List`1 edits, Int32 undoEditIndex, Boolean fromDifferentSession, Boolean fromInitialRead)
場所 Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
場所 Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
-----------------------------------------------------------------------
Morilli, autoantwort, mateoatr, JoseLion, Anduin2017 and 2 more
Metadata
Metadata
Assignees
Labels
Resolution-DuplicateThere's another issue on the tracker that's pretty much the same thing.There's another issue on the tracker that's pretty much the same thing.