gen_display_resources: Always treat the sample file as utf-8.
This may help resolve the build problems reported at #4750.
This commit is contained in:
parent
a70fc0caee
commit
35f1da4c1a
@ -18,7 +18,7 @@ parser.add_argument("--font", type=str, help="Font path", required=True)
|
||||
parser.add_argument("--extra_characters", type=str, help="Unicode string of extra characters")
|
||||
parser.add_argument(
|
||||
"--sample_file",
|
||||
type=argparse.FileType("r"),
|
||||
type=argparse.FileType("r", encoding="utf-8"),
|
||||
help="Text file that includes strings to support.",
|
||||
)
|
||||
parser.add_argument("--output_c_file", type=argparse.FileType("w"), required=True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user