From: Oleg Broytman Date: Sat, 24 Feb 2024 15:36:00 +0000 (+0300) Subject: Fix(py3): Fix filesystem encoding X-Git-Tag: 5.1.1~1 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=8c29b392cb63442b52c6252c3a8418ff1677ffb3;p=xsetbg.git Fix(py3): Fix filesystem encoding --- 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)