]> git.phdru.name Git - xsetbg.git/commitdiff
Fix(py3): Fix filesystem encoding
authorOleg Broytman <phd@phdru.name>
Sat, 24 Feb 2024 15:36:00 +0000 (18:36 +0300)
committerOleg Broytman <phd@phdru.name>
Sat, 24 Feb 2024 15:36:00 +0000 (18:36 +0300)
ChangeLog
rescan_fs.py

index c720951613d2f62b0985bdc66d5944917cd70161..842d67ad827cf084a3f3130b438dc1ac0f865793 100644 (file)
--- 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.
index 346f92b28f387c3434731ec9d0e19e4949955aa2..9688de941cbb4831d35947261f03b238783800ea 100755 (executable)
@@ -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)