mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Handle fontconfig configuration that included un-deodable font paths
Fix crash on linux systems whose fontconfig configuration includes paths to in an undecodable encoding.
This commit is contained in:
parent
75b77e9440
commit
c20693d3d5
@ -73,7 +73,7 @@ def fc_list():
|
||||
try:
|
||||
ans.append(d.decode(filesystem_encoding))
|
||||
except ValueError:
|
||||
return default_font_dirs
|
||||
continue
|
||||
end(str_list)
|
||||
if len(ans) < 3:
|
||||
return default_font_dirs()
|
||||
|
Loading…
x
Reference in New Issue
Block a user