8000 gen_display_resources: Always treat the sample file as utf-8. · unixjazz/circuitpython@35f1da4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 35f1da4

Browse files
committed
gen_display_resources: Always treat the sample file as utf-8.
This may help resolve the build problems reported at adafruit#4750.
1 parent a70fc0c commit 35f1da4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/gen_display_resources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
parser.add_argument("--extra_characters", type=str, help="Unicode string of extra characters")
1919
parser.add_argument(
2020
"--sample_file",
21-
type=argparse.FileType("r"),
21+
type=argparse.FileType("r", encoding="utf-8"),
2222
help="Text file that includes strings to support.",
2323
)
2424
parser.add_argument("--output_c_file", type=argparse.FileType("w"), required=True)

0 commit comments

Comments
 (0)
0