We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8922fa0 commit 53b9484Copy full SHA for 53b9484
src/librustc/back/archive.rs
@@ -145,7 +145,10 @@ impl Archive {
145
/// Lists all files in an archive
146
pub fn files(&self) -> ~[~str] {
147
let output = run_ar(self.sess, "t", None, [&self.dst]);
148
- str::from_utf8(output.output).unwrap().lines().map(|s| s.to_owned()).collect()
+ let output = str::from_utf8(output.output).unwrap();
149
+ // use lines_any because windows delimits output with `\r\n` instead of
150
+ // just `\n`
151
+ output.lines_any().map(|s| s.to_owned()).collect()
152
}
153
154
fn add_archive(&mut self, archive: &Path, name: &str,
0 commit comments