From 836082d398eb1dff8fb9fc6227f70ea56044eeba Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 10 Aug 2011 13:21:46 +0200 Subject: updated for version 7.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) --- src/quickfix.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/quickfix.c') 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 -- cgit v1.2.1