From 8c29b392cb63442b52c6252c3a8418ff1677ffb3 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 24 Feb 2024 18:36:00 +0300 Subject: [PATCH] Fix(py3): Fix filesystem encoding --- ChangeLog | 4 ++++ rescan_fs.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c720951..842d67a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Version 5.1.1 (2024-02-24) + + Python 3 Fix filesystem encoding. + Version 5.1.0 (2024-02-24) Python 3. diff --git a/rescan_fs.py b/rescan_fs.py index 346f92b..9688de9 100755 --- a/rescan_fs.py +++ b/rescan_fs.py @@ -52,7 +52,7 @@ NULL = open(os.devnull, 'w') def is_image(full_path): # Run `identify` from ImageMagic; convert retcode to bool - return not subprocess.call(['identify', full_path], + return not subprocess.call(['identify', full_path.encode(fs_encoding)], stdout=NULL, stderr=subprocess.STDOUT) -- 2.39.5