Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4505791

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

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎lib/matplotlib/texmanager.py

Copy file name to clipboardExpand all lines: lib/matplotlib/texmanager.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.