diff options
author | Bram Moolenaar <Bram@vim.org> | 2011-08-10 13:21:46 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2011-08-10 13:21:46 +0200 |
commit | 836082d398eb1dff8fb9fc6227f70ea56044eeba (patch) | |
tree | 7a089cb141c3dd2add36024b3590eca6a1e5bd6f /src/quickfix.c | |
parent | 213b10a57e08cf4389c54084e7236837b2396bb7 (diff) | |
download | vim-git-836082d398eb1dff8fb9fc6227f70ea56044eeba.tar.gz |
updated for version 7.3.273v7.3.273
Problem: A BOM in an error file is seen as text. (Aleksey Baibarin)
Solution: Remove the BOM from the text before evaluating. (idea by Christian
Brabandt)
Diffstat (limited to 'src/quickfix.c')
-rw-r--r-- | src/quickfix.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/quickfix.c b/src/quickfix.c index 999c66ed9..17d85837c 100644 --- a/src/quickfix.c +++ b/src/quickfix.c @@ -561,6 +561,10 @@ qf_init_ext(qi, efile, buf, tv, errorformat, newlist, lnumfirst, lnumlast, break; IObuff[CMDBUFFSIZE - 2] = NUL; /* for very long lines */ +#ifdef FEAT_MBYTE + remove_bom(IObuff); +#endif + if ((efmp = vim_strrchr(IObuff, '\n')) != NULL) *efmp = NUL; #ifdef USE_CRNL |