Vs2012 奇怪的warning C4819(code page) 错误
今天遇到了个奇怪的错误
VS2012: Project的Warning level是level 3,treat warnings as error开启。源代码文件的encoding 为 UTF-8 without signature(65001)。
今天svn commit完代码后再build发现出错了。报
warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
找了一会发现是SVN自动更新时,在文件头部填充的时间“十一月”导致的。经过试验发现,只要 “一”和“月”这两个字连一起(“一月”),并在 UTF-8 without signature 这个code page页上,就会导致的这个warning。在UTF-8 with signature 页没这个问题,甚至在936页(错误信息里误以为的当前页)也没这个问题。
有没有人知道这个是不是VS2012的已知bug?有没有修复的补丁?