WIN-03: Normalize packaging fixture line endings in tests

This commit is contained in:
jahvari
2026-10-10 22:39:51 -05:00
parent 61df55ff43
commit e60a7e43bf
+2 -1
View File
@@ -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