diff options
| author | bors <bors@rust-lang.org> | 2013-08-05 13:49:55 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-08-05 13:49:55 -0700 |
| commit | 29099e450a912cfcd0a0ccc72f55751bc2e209f2 (patch) | |
| tree | 73625d9f3f2edc574a8d97e847aa125b232dd6ce /src/libstd | |
| parent | d8b299d179653cbde783f62f70b5531dbaa5c5a6 (diff) | |
| parent | 180d050138bc27958291dda3ea46374e4d115848 (diff) | |
| download | rust-29099e450a912cfcd0a0ccc72f55751bc2e209f2.tar.gz rust-29099e450a912cfcd0a0ccc72f55751bc2e209f2.zip | |
auto merge of #8298 : darkf/rust/fix-3948, r=pcwalton
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/io.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/io.rs b/src/libstd/io.rs index f750f3f3195..55e60f03ea9 100644 --- a/src/libstd/io.rs +++ b/src/libstd/io.rs @@ -1041,7 +1041,7 @@ pub fn stdin() -> @Reader { pub fn file_reader(path: &Path) -> Result<@Reader, ~str> { let f = do path.to_str().as_c_str |pathbuf| { - do "r".as_c_str |modebuf| { + do "rb".as_c_str |modebuf| { unsafe { libc::fopen(pathbuf, modebuf as *libc::c_char) } } }; |
