Skip to content

Commit 667f8b3

Browse files
committed
Enforce utf-8 encoding for origin.json in wheel cache
1 parent e58a8a5 commit 667f8b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pip/_internal/cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,4 +286,4 @@ def record_download_origin(cache_dir: str, download_info: DirectUrl) -> None:
286286
cache_dir,
287287
download_info.url,
288288
)
289-
origin_path.write_text(download_info.to_json())
289+
origin_path.write_text(download_info.to_json(), encoding="utf-8")

0 commit comments

Comments
 (0)