The patch appears to not handle empty files or files with less than 3 characters.  Does it need to?<br><br>Clint<br><br>----- Reply message -----<br>From: "Evgeniy Dushistov" <dushistov@mail.ru><br>Date: Mon, Oct 14, 2013 2:19 am<br>Subject: [cmake-developers] [PATCH] [RFC] handle c dependicies for files        with utf-8 BOM<br>To: <cmake-developers@cmake.org><br><br>Hi,<br>here is description of the problem:<br><a href="http://www.cmake.org/pipermail/cmake/2013-October/056008.html">http://www.cmake.org/pipermail/cmake/2013-October/056008.html</a><br><br>in short, cmake not handle dependencies of c/c++ source file from c/c++<br>header file, if source file has utf-8 BOM.<br>So, if for example in your team used Visual Studio with preference to<br>save files in utf-8 (Qt 5 now works only with UTF-8),<br>and linux+cmake+gcc, then someday you see<br>that you change header files, but corresponded c++ source file was not<br>recompiled.<br><br>Here (in attachment) is possible solution of this problem (it passes all tests,<br>except two, but they fails and without this patch).<br><br>-- <br>/Evgeniy<br><br><br>