From 5fa41d9e9b51ebc728aaecac537980163d9228e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 27 Nov 2013 17:11:46 +0100 Subject: use input file in binary mode --- eo_tokenizer.rl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eo_tokenizer.rl b/eo_tokenizer.rl index b995b13..a80dfc5 100644 --- a/eo_tokenizer.rl +++ b/eo_tokenizer.rl @@ -432,7 +432,7 @@ eo_tokenizer_walk(Eo_Tokenizer *toknz, const char *source) int have = 0; int offset = 0; - stream = fopen(toknz->source, "r"); + stream = fopen(toknz->source, "rb"); if (!stream) { ERR("unable to read in %s", toknz->source); -- cgit v1.1-2-g2b99