fix: unicode error when running fzf on wndows

This commit is contained in:
benex
2024-09-15 08:53:22 +03:00
parent eda8984781
commit 001030ba2b

View File

@@ -123,7 +123,9 @@ class FZF:
[self.FZF_EXECUTABLE, *commands],
input=fzf_input,
stdout=subprocess.PIPE,
universal_newlines=True,
text=True,
encoding="utf-8"
)
if not result or result.returncode != 0 or not result.stdout:
print("sth went wrong:confused:")