mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54: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:
|
try:
|
||||||
ans.append(d.decode(filesystem_encoding))
|
ans.append(d.decode(filesystem_encoding))
|
||||||
except ValueError:
|
except ValueError:
|
||||||
return default_font_dirs
|
continue
|
||||||
end(str_list)
|
end(str_list)
|
||||||
if len(ans) < 3:
|
if len(ans) < 3:
|
||||||
return default_font_dirs()
|
return default_font_dirs()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user