auto merge of #8298 : darkf/rust/fix-3948, r=pcwalton
This commit is contained in:
commit
29099e450a
@ -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) }
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user