]> git.phdru.name Git - dotfiles.git/commitdiff
bin/recode_filenames: Fix output encoding master
authorOleg Broytman <phd@phdru.name>
Sat, 30 Nov 2024 17:49:02 +0000 (20:49 +0300)
committerOleg Broytman <phd@phdru.name>
Sat, 30 Nov 2024 17:49:02 +0000 (20:49 +0300)
bin/recode_filenames.py

index bd10bf53a7496e3fd739addc69e42797566c86e8..1f543d430dfb7be5e6eb8ef19338f8143000c847 100755 (executable)
@@ -123,6 +123,6 @@ if __name__ == "__main__":
                 b'%s %s / %s -> %s\n' % (
                     from_encoding.encode(), to_encoding.encode(),
                     filename.encode(default_encoding, 'replace'),
                 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)
                 )
             os.rename(filename, new_name)