fzf icon indicating copy to clipboard operation
fzf copied to clipboard

FZF_DEFAULT_COMMAND doesn't process Cyrillic correctly

Open FallenGameR opened this issue 3 years ago • 0 comments

  • [x] I have read through the manual page (man fzf)

  • [x] I have the latest version of fzf: 0.32.1 (4993d19)

  • [x] I have searched through the existing issues

  • OS: Windows

  • Shell: pswh 7.2.5 on Windows Terminal

Problem / Steps to reproduce

Piped-in input is processed correctly but the same command when invoked via FZF_DEFAULT_COMMAND returns ??? chars:

"ls -Directory | % fullname" > D:\OneDrive\Books\cmd.ps1
$env:FZF_DEFAULT_COMMAND = "pwsh.exe -nop -f D:\OneDrive\Books\cmd.ps1"

& D:\OneDrive\Books\cmd.ps1 | fzf
>
> D:\OneDrive\Books\Всем                                                                                                                                                      
  D:\OneDrive\Books\Детям                                                                                                                                                     
  D:\OneDrive\Books\Папе

fzf
>
> D:\OneDrive\Books\????                                                                                                                                                      
  D:\OneDrive\Books\?????                                                                                                                                                     
  D:\OneDrive\Books\????      

FallenGameR avatar Aug 12 '22 22:08 FallenGameR