From: Oleg Broytman Date: Sat, 30 Nov 2024 17:49:02 +0000 (+0300) Subject: bin/recode_filenames: Fix output encoding X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;ds=sidebyside;p=dotfiles.git bin/recode_filenames: Fix output encoding --- diff --git a/bin/recode_filenames.py b/bin/recode_filenames.py index bd10bf5..1f543d4 100755 --- a/bin/recode_filenames.py +++ b/bin/recode_filenames.py @@ -123,6 +123,6 @@ if __name__ == "__main__": b'%s %s / %s -> %s\n' % ( from_encoding.encode(), to_encoding.encode(), filename.encode(default_encoding, 'replace'), - new_name.encode()) + new_name.encode(to_encoding, 'replace')) ) os.rename(filename, new_name)