diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 2e1908687..08f1ade7d 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -519,7 +519,8 @@ mod tests { fn macos_packaging(file: &str) -> String { let path = Path::new(env!("CARGO_MANIFEST_DIR")).join("../packaging/macos").join(file); - std::fs::read_to_string(&path).unwrap_or_else(|e| panic!("{}: {e}", path.display())) + // Git may check out packaging files with CRLF on Windows. + std::fs::read_to_string(&path).unwrap_or_else(|e| panic!("{}: {e}", path.display())).replace("\r\n", "\n") } /// Voice-over recording needs both halves on macOS: the usage string (else the permission