mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-03-10 07:21:25 +00:00
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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/2111>
This commit is contained in:
parent
50472dc22c
commit
e6f4b69aa2
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||||
|
|
Loading…
Reference in a new issue