diff --git a/crates/uv-shell/src/lib.rs b/crates/uv-shell/src/lib.rs index a18e04b03..d404aa940 100644 --- a/crates/uv-shell/src/lib.rs +++ b/crates/uv-shell/src/lib.rs @@ -329,7 +329,9 @@ fn backtick_escape(s: &str) -> String { let mut escaped = String::with_capacity(s.len()); for c in s.chars() { match c { - '\\' | '"' | '$' => escaped.push('`'), + // Need to also escape unicode double quotes that PowerShell treats + // as the ASCII double quote. + '"' | '`' | '\u{201C}' | '\u{201D}' | '\u{201E}' | '$' => escaped.push('`'), _ => {} } escaped.push(c);