dots-viewer: cargo_wrapper: Force log file to be written in utf-8
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8242>
This commit is contained in:
parent
a99694cca8
commit
ed943b04c0
@ -74,7 +74,7 @@ if __name__ == "__main__":
|
|||||||
opts = PARSER.parse_args()
|
opts = PARSER.parse_args()
|
||||||
logdir = opts.root_dir / "meson-logs"
|
logdir = opts.root_dir / "meson-logs"
|
||||||
logfile_path = logdir / f"{opts.src_dir.name}-cargo-wrapper.log"
|
logfile_path = logdir / f"{opts.src_dir.name}-cargo-wrapper.log"
|
||||||
logfile = open(logfile_path, mode="w", buffering=1)
|
logfile = open(logfile_path, mode="w", buffering=1, encoding='utf-8')
|
||||||
|
|
||||||
print(opts, file=logfile)
|
print(opts, file=logfile)
|
||||||
cargo_target_dir = opts.build_dir / "target"
|
cargo_target_dir = opts.build_dir / "target"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user