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
Search the existing issues, especially the pinned issues.
Exception report
### EnvironmentPSReadLine: 2.3.4PowerShell: 7.4.0OS: Microsoft Windows 10.0.22635BufferWidth: 197BufferHeight: 13Last 175 Keys: d j a n g o Spacebar Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace p y t h o n Spacebar DownArrow Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace y Spacebar m i g r a t e Enter UpArrow DownArrow UpArrow Enter UpArrow Enter UpArrow Backspace Backspace Backspace Backspace Backspace Backspace Backspace m a k e m i g r a t i o n s Enter UpArrow UpArrow Enter UpArrow Backspace Backspace Backspace Backspace Backspace Backspace Backspace r DownArrow Enter UpArrow UpArrow UpArrow DownArrow Enter UpArrow UpArrow UpArrow Enter UpArrow UpArrow Enter UpArrow UpArrow UpArrow Enter UpArrow Enter UpArrow Enter UpArrow Enter UpArrow Enter g i t Spacebar i n i t Spacebar . Enter g i t Spacebar a d d Spacebar . Enter g i t Spacebar c o m m m m Backspace Backspace i t Spacebar - m Spacebar " � " LeftArrow Backspace � � Backspace RightArrow LeftArrow Backspace Backspace RightArrow Backspace " � " Enter### ExceptionSystem.Text.EncoderFallbackException: Unable to translate Unicode character \\uD83C at index 15 to specified code page. at System.Text.EncoderExceptionFallbackBuffer.Fallback(Char charUnknown, Int32 index) at System.Text.Encoding.GetBytesWithFallback(ReadOnlySpan`1 chars, Int32 originalCharsLength, Span`1 bytes, Int32 originalBytesLength, EncoderNLS encoder, Boolean throwForDestinationOverflow) at System.Text.Encoding.GetBytesWithFallback(Char* pOriginalChars, Int32 originalCharCount, Byte* pOriginalBytes, Int32 originalByteCount, Int32 charsConsumedSoFar, Int32 bytesWrittenSoFar, EncoderNLS encoder) at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder) at System.IO.StreamWriter.Dispose(Boolean disposing) at System.IO.TextWriter.Dispose() at Microsoft.PowerShell.PSConsoleReadLine.<>c__DisplayClass103_0.<WriteHistoryRange>b__0() at Microsoft.PowerShell.PSConsoleReadLine.WithHistoryFileMutexDo(Int32 timeout, Action action) at Microsoft.PowerShell.PSConsoleReadLine.WriteHistoryRange(Int32 start, Int32 end, Boolean overwritten) at Microsoft.PowerShell.PSConsoleReadLine.IncrementalHistoryWrite() at Microsoft.PowerShell.PSConsoleReadLine.MaybeAddToHistory(String result, List`1 edits, Int32 undoEditIndex, Boolean fromDifferentSession, Boolean fromInitialRead) at Microsoft.PowerShell.PSConsoleReadLine.InputLoop() at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics, CancellationToken cancellationToken, Nullable`1 lastRunStatus)
This is a duplicate of #3832 and is actually an issue with the older version of conpty that ships with Windows -- the � shown in VSCode terminal was because only the high surrogate of the surrogate pair that represents the emoji was pasted into the read-line buffer, due to the older version of conpty not handling it correctly.
See #3832 (comment) and the replying comment from Tyriar for details.
Prerequisites
Exception report
Screenshot
N/A
Environment data
Steps to reproduce
Run
git commit -m "�"
in vscode terminal.To insert the emoji 🎉 in vscode, press the Windows key and the period key simultaneously.
Expected behavior
execute
git commit -m "🎉"
.Actual behavior
Throw exception.
The text was updated successfully, but these errors were encountered: