Skip to content
Snippets Groups Projects
Commit 1bb9d4a9 authored by Thibault Saunier's avatar Thibault Saunier :cactus: Committed by Backport Bot
Browse files

cargo_wrapper: Force log file to be written in utf-8

We can hit https://gitlab.freedesktop.org/HuQian/gstreamer/-/jobs/71717584
otherwise, weirdly it never happened here.

Part-of: <!2114>
parent cef0a4bc
No related branches found
No related tags found
1 merge request!2114Backport of "cargo_wrapper: Force log file to be written in utf-8" into 0.12
Pipeline #1373562 waiting for manual action
...@@ -76,7 +76,7 @@ if __name__ == "__main__": ...@@ -76,7 +76,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'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment