Skip to content

Commit

Permalink
Fix encoding problem for Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Ethan Lee <[email protected]>
  • Loading branch information
Ethan Lee committed Nov 11, 2024
1 parent 6e7f9e1 commit 1d9cafb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fosslight_binary/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ def main():
data_path = os.path.join(base_path, 'LICENSES')
print(f"*** {_PKG_NAME} open source license notice ***")
for ff in os.listdir(data_path):
source_file = os.path.join(data_path, ff)
destination_file = os.path.join(base_path, ff)
source_file = os.path.join(data_path, ff, 'r', encoding='utf8')
destination_file = os.path.join(base_path, ff, 'w', encoding='utf8')
paginate_file(source_file)
shutil.copyfile(source_file, destination_file)
sys.exit(0)
Expand Down

0 comments on commit 1d9cafb

Please sign in to comment.