Skip to content

Commit

Permalink
Rollup merge of #89364 - hkmatsumoto:encode-json-with-utf-8, r=Mark-S…
Browse files Browse the repository at this point in the history
…imulacrum

rustdoc-json: Encode json files with UTF-8

Currently, `check_missing_items.py` malfunctions when the index contains some letters like emojis.

Related to #89360.
  • Loading branch information
Manishearth authored Oct 5, 2021
2 parents eeadc9d + e46fc9d commit 27b84a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/etc/check_missing_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import sys
import json

crate = json.load(open(sys.argv[1]))
crate = json.load(open(sys.argv[1], encoding="utf-8"))


def get_local_item(item_id):
Expand Down

0 comments on commit 27b84a9

Please sign in to comment.