gum
gum copied to clipboard
Double encoding in Powershell
Describe the bug
While this works fine in Linux:
Powershell doesn't like it when we forward the result of gum format
to gum style
To Reproduce In Powershell:
- First run
echo "* List" | gum format
. Markdown is rendered correctly. - Then run
gum style --foreground "#FFF" --border-foreground "2" --border double --align left --width 100 --margin "1 2" --padding "1 1" "$(echo "* List" | gum format )"
. The dot of the list transforms to wired chars.
Expected behavior Powershell behaves like Bash
piping gum format to gum style works fine
echo "* List" | gum format | gum style --foreground "#FFF" --border-foreground "2" --border double --align left --width 100 --margin "1 2" --padding "1 1"
For me it doesn't:
What Powershell are you using?
Did you override the default encodings?
@korpa you're using the old an dated "Powershell" (blue logo) and not the more modern and maintained "Powershell Core" (black logo)
You can install the newer powershell using winget by doing winget install Microsoft.PowerShell
Hej @kirides,
I installed the latest Powershell as suggested by you, but still have the same issue:
I tested a couple of scenarios:
- Terminals: Windows Terminal, Alacritty
- Fonts: JetBrainsMono Nerdfont, Cascadia Mono
In all scenarios the same issue.