Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit921e49f

Browse files
committed
TST: Always use UTF-8 when reading SVG for image comparisons
1 parent614093c commit921e49f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎lib/matplotlib/testing/compare.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def convert(filename, cache):
300300
_log.debug("For %s: converting to png.",filename)
301301
convert=converter[path.suffix[1:]]
302302
ifpath.suffix==".svg":
303-
contents=path.read_text()
303+
contents=path.read_text(encoding="utf-8")
304304
# NOTE: This check should be kept in sync with font styling in
305305
# `lib/matplotlib/backends/backend_svg.py`. If it changes, then be sure to
306306
# re-generate any SVG test files using this mode, or else such tests will

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp