From 58340d0bb110c622205165e7ab725861cb8bbdd3 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 30 Nov 2024 20:49:02 +0300 Subject: [PATCH] bin/recode_filenames: Fix output encoding --- bin/recode_filenames.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5