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?