Open
Description
Checklist
- I have read through the manual page (
man fzf
) - I have searched through the existing issues
- For bug reports, I have checked if the bug is reproducible in the latest version of fzf
Output of fzf --version
0.55.0 (fc69308)
OS
- Linux
- macOS
- Windows
- Etc.
Shell
- bash
- zsh
- fish
Problem / Steps to reproduce
- Use any system codepage other than 65001 (which is Beta and is never the default).
- Run
dir | fzf
when any file names are present with non-ASCII characters.
Result = fzf interprets the stdin as UTF8, but the stdin is never UTF8 by default, and so fzf shows garbled text.
Expected = fzf interprets the stdin as being in the system codepage by default, like native Windows programs do.
Something in fzf is going out of its way to assume UTF8 stdin on Windows, but that isn't how Windows programs work.
Ideally fzf would assume system codepage by default, and could have something like a --utf8
flag to select assuming UTF8 stdin.