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