summaryrefslogtreecommitdiff
path: root/src/quickfix.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-08-10 13:21:46 +0200
committerBram Moolenaar <Bram@vim.org>2011-08-10 13:21:46 +0200
commit836082d398eb1dff8fb9fc6227f70ea56044eeba (patch)
tree7a089cb141c3dd2add36024b3590eca6a1e5bd6f /src/quickfix.c
parent213b10a57e08cf4389c54084e7236837b2396bb7 (diff)
downloadvim-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.c4
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