Skip to content
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 on 'echo 😃' #952

Closed
mikemaccana opened this issue Jun 28, 2019 · 2 comments
Closed

Crash on 'echo 😃' #952

mikemaccana opened this issue Jun 28, 2019 · 2 comments
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@mikemaccana
Copy link

mikemaccana commented Jun 28, 2019

PSReadline as shipped in Powershell 6.2.1.

(Markdown hates the triple-backtick below so I removed them)

$ echo �

Oops, something went wrong.  Please report this bug with the details below.
Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new
-----------------------------------------------------------------------
Last 7 Keys:
(Triple backtick removed by Mike)
e c h o Space � Enter

(Triple backtick removed by Mike)

Exception:
(Triple backtick removed by Mike)

System.Text.EncoderFallbackException: Unable to translate Unicode character \\uD83D at index 5 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__DisplayClass81_0.<WriteHistoryRange>b__0()
  at Microsoft.PowerShell.PSConsoleReadLine.WithHistoryFileMutexDo(Int32 timeout, Action action)
  at Microsoft.PowerShell.PSConsoleReadLine.WriteHistoryRange(Int32 start, Int32 end, Func`2 fileOpener)
@mkontani
Copy link

mkontani commented Jul 3, 2019

maybe this issue is dup of #949 ?

@daxian-dbw daxian-dbw added the Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. label Jul 16, 2019
@daxian-dbw
Copy link
Member

Close as a duplicate of #949

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

3 participants