abgox / PSCompletions

A completion manager for better and simpler use completions in PowerShell. 一个补全管理模块,更简单、更方便的在 PowerShell 中使用命令补全。
https://pscompletions.pages.dev
MIT License
111 stars 6 forks source link

[Bug]: emoji/text rendering issue #49

Open flatlined opened 4 days ago

flatlined commented 4 days ago

Before Start

What Powershell version are you using?

PowerShell

What system are you using?

Windows

Steps to reproduce

Install psc, import it, open the menu

What is expected?

Proper rendering if all text / glyphs.

What is actually happening?

image Text characters render normally. Emoji and other glyphs do not.

Any additional comments?

The Beta option in Regional Settings in the Control Panel is not checked. Emoji do render normally in the terminal, but not in the psc menu. I have tried this with my full Powershell profile (as seen in the image above), with an empty profile except for Import-Module PSCompletions, and with an empty profile except for

Import-Module PSCompletions
$OutputEncoding = [console]::InputEncoding = [console]::OutputEncoding = New-Object System.Text.UTF8Encoding

or

$OutputEncoding = [console]::InputEncoding = [console]::OutputEncoding = New-Object System.Text.UTF8Encoding
Import-Module PSCompletions

but all variations fail to render emoji properly.

abgox commented 4 days ago

image

abgox commented 4 days ago

$OutputEncoding = [console]::InputEncoding = [console]::OutputEncoding = New-Object System.Text.UTF8Encoding

flatlined commented 4 days ago

Yup! I was using preview, and can confirm that the non-preview version works. Thank you!

abgox commented 4 days ago
abgox commented 4 days ago

https://github.com/microsoft/terminal/issues/18242

abgox commented 23 hours ago

Related to #53