diff options
author | Francois Pichet <pichet2000@gmail.com> | 2010-10-12 01:01:43 +0000 |
---|---|---|
committer | Francois Pichet <pichet2000@gmail.com> | 2010-10-12 01:01:43 +0000 |
commit | c44fe4bf2962bfcb323e93a63ba4a72d67839cde (patch) | |
tree | e382c9ed0f38ad6ad88cdf182f40f1cecb64dc5f /tools/c-index-test/c-index-test.c | |
parent | 4cd912aa94656697a44c3ebb159f05060300524e (diff) |
This patch remove the Win32 XFAIL from remap-complete.c
The problem was that text files were open in text mode and Microsoft implementation of fread and write will try to do nasty line-feed conversion which make the line position no longer valid. The fix is to read and write files in binary mode.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116286 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/c-index-test/c-index-test.c')
-rw-r--r-- | tools/c-index-test/c-index-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/c-index-test/c-index-test.c b/tools/c-index-test/c-index-test.c index 773c009321..84ceab2e66 100644 --- a/tools/c-index-test/c-index-test.c +++ b/tools/c-index-test/c-index-test.c @@ -109,7 +109,7 @@ int parse_remapped_files(int argc, const char **argv, int start_arg, } /* Open the file that we're remapping to. */ - to_file = fopen(semi + 1, "r"); + to_file = fopen(semi + 1, "rb"); if (!to_file) { fprintf(stderr, "error: cannot open file %s that we are remapping to\n", semi + 1); |