Navigation Menu

Skip to content

Commit

Permalink
Decode subprocess output to utf-8 or regex will fail
Browse files Browse the repository at this point in the history
  • Loading branch information
tomspur committed Apr 2, 2013
1 parent ff6d7eb commit e46a976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/matplotlib/font_manager.py
Expand Up @@ -1287,7 +1287,7 @@ def fc_match(pattern, fontext):
except OSError:
return None
if pipe.returncode == 0:
for match in _fc_match_regex.finditer(output):
for match in _fc_match_regex.finditer(output.decode("utf-8")):
file = match.group(1)
if os.path.splitext(file)[1][1:] in fontexts:
return file
Expand Down

0 comments on commit e46a976

Please sign in to comment.