Skip to content

Git commit exceptions #4853

@agaveingit

Description

@agaveingit

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues, especially the pinned issues.

Exception report

### Exception

System.Text.EncoderFallbackException: Unable to translate Unicode character \uD83D at index 15 to specified code page.
   at System.Text.EncoderExceptionFallbackBuffer.Fallback(Char charUnknown, Int32 index)
   at System.Text.EncoderFallbackBuffer.InternalFallback(Char ch, Char*& chars)
   at System.Text.UTF8Encoding.GetBytes(Char* chars, Int32 charCount, Byte* bytes, Int32 byteCount, EncoderNLS baseEncoder)
   at System.Text.EncoderNLS.GetBytes(Char[] chars, Int32 charIndex, Int32 charCount, Byte[] bytes, Int32 byteIndex, Boolean flush)
   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__DisplayClass83_0.<WriteHistoryRange>b__0()
   at Microsoft.PowerShell.PSConsoleReadLine.WithHistoryFileMutexDo(Int32 timeout, Action action)
   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)

Screenshot

N/A

Environment data

### Environment
PSReadLine: 2.0.0
PowerShell: 5.1.26100.4652
OS: Microsoft Windows 10.0.26100
Last 199 Keys

Steps to reproduce

n o d e : Spacebar g i t i g n o r e Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace e . g i t i g n o r e Enter
c l e a r Enter
g i t Spacebar a d d Spacebar . Enter
g i t Spacebar c o m m i t Spacebar - m Spacebar " � Spacebar t r y Spacebar g i t Spacebar f o r Spacebar t h e Spacebar f i r s t Spacebar t i m e " Spacebar Backspace Backspace Enter
T h i s Spacebar i s Spacebar m y Spacebar f i r s t Spacebar c o m m i t Enter
I Spacebar j u s t Spacebar f o l l o w e d Spacebar s o m e Spacebar t u t o r i a l Enter
I n s s Backspace t a l l e d Spacebar s o m e Spacebar p l u g g i n s Enter
A d d Spacebar g i t i g n o r e Enter
" Enter


### Expected behavior

N/A

### Actual behavior

Oops, something went wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions