Permalink
Browse files

Decode subprocess output to utf-8 or regex will fail

  • Loading branch information...
1 parent ff6d7eb commit e46a976b289d766ca752c4e81d6b6fea05230afc @tomspur committed Apr 2, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/matplotlib/font_manager.py
@@ -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

0 comments on commit e46a976

Please sign in to comment.