diff src/quickfix.c @ 3002:7d4e5e31d8c1 v7.3.273

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)
author Bram Moolenaar <bram@vim.org>
date Wed, 10 Aug 2011 13:21:46 +0200
parents 45c536fe48db
children 58bba69b3371
line wrap: on
line diff
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -561,6 +561,10 @@ qf_init_ext(qi, efile, buf, tv, errorfor
 	    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