GNOME Bugzilla – Bug 568072
nodetree.hg contains non-ASCII character cause warning C4819 in VS2008
Last modified: 2009-01-19 09:02:10 UTC
Please describe the problem: When compile the library, the warning C4819 on nodetree.h is always shown in Visual Studio 2008. Steps to reproduce: 1. Just compile a small gtkmm demo program under non-English Windows system by Visual Studio 2008. Actual results: Visual Studio 2008 will raise the following warning: c:\program files\gtkmm\include\glibmm-2.4\glibmm\nodetree.h : 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 Expected results: Does this happen every time? Yes Other information:
Created attachment 126642 [details] [review] proposed patch The problem is caused by a non-ASCII character '—' in comments of the nodetree.hg. Fixed by replace it with '-'.
Thanks. I have committed that to the trunk and glibmm-2-18 branches. Please remember to patch the ChangeLog in future.