From 8d042846b19035f1417433d11b96f7db3f4e31e1 Mon Sep 17 00:00:00 2001 From: Wolf Vollprecht Date: Tue, 16 Apr 2024 22:33:20 +0200 Subject: [PATCH] add a small unicode tweak --- src/script.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/script.rs b/src/script.rs index 0e8072cb7..954a720de 100644 --- a/src/script.rs +++ b/src/script.rs @@ -179,14 +179,14 @@ impl Interpreter for CmdExeInterpreter { let build_env_path = args.work_dir.join("build_env.bat"); let build_script_path = args.work_dir.join("conda_build.bat"); - tokio::fs::write(&build_env_path, &script).await?; + tokio::fs::write(&build_env_path, &script.replace('\n', "\r\n").as_bytes()).await?; let build_script = format!( "{}\n{}", CMDEXE_PREAMBLE.replace("((script_path))", &build_env_path.to_string_lossy()), args.script ); - tokio::fs::write(&build_script_path, &build_script).await?; + tokio::fs::write(&build_script_path, &build_script.replace('\n', "\r\n").as_bytes()).await?; let build_script_path_str = build_script_path.to_string_lossy().to_string(); let cmd_args = ["cmd.exe", "/d", "/c", &build_script_path_str];