Skip to content

Commit 549ce85

Browse files
committed
FIX: accept non-ascii in dvipng --version output
Closes matplotlib#4545
1 parent 32a3292 commit 549ce85

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)