Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92e2c52 commit 5ba21b0Copy full SHA for 5ba21b0
1 file changed
lib/matplotlib/dviread.py
@@ -839,7 +839,8 @@ def __init__(self, filename):
839
self._font = {}
840
self._filename = filename
841
if six.PY3 and isinstance(filename, bytes):
842
- self._filename = filename.decode('ascii', errors='replace')
+ encoding = sys.getfilesystemencoding() or 'utf-8'
843
+ self._filename = filename.decode(encoding, errors='replace')
844
with open(filename, 'rb') as file:
845
self._parse(file)
846
0 commit comments