Skip to content

Commit 4505791

Browse files
committed
Merge pull request matplotlib#4547 from tacaswell/fix_dvipng_unicode
FIX: accept non-ascii in dvipng --version output
2 parents feec983 + 549ce85 commit 4505791

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/texmanager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def dvipng_hack_alpha():
7474
except OSError:
7575
mpl.verbose.report('No dvipng was found', 'helpful')
7676
return False
77-
lines = stdout.decode('ascii').split('\n')
77+
lines = stdout.decode(sys.getdefaultencoding()).split('\n')
7878
for line in lines:
7979
if line.startswith('dvipng '):
8080
version = line.split()[-1]

0 commit comments

Comments
 (0)