Skip to content

Commit

Permalink
Merge pull request #14 from brookite/master
Browse files Browse the repository at this point in the history
Fixing incorrect output when using strings with non-ascii characters on Windows
  • Loading branch information
nk412 authored Mar 1, 2022
2 parents 89b72d4 + 93394d6 commit 0dfe216
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.0
0.3.1
2 changes: 1 addition & 1 deletion pyfzf/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__author__ = 'Nagarjuna Kumarappan ([email protected])'
__license__ = 'MIT'
__version__ = '0.3.0'
__version__ = '0.3.1'


from .pyfzf import *
2 changes: 1 addition & 1 deletion pyfzf/pyfzf.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def prompt(self, choices=None, fzf_options="", delimiter='\n'):
f"{self.executable_path} {fzf_options} < \"{input_file.name}\" > \"{output_file.name}\"")

# get selected options
with open(output_file.name) as f:
with open(output_file.name, encoding="utf-8") as f:
for line in f:
selection.append(line.strip('\n'))

Expand Down

0 comments on commit 0dfe216

Please sign in to comment.