Hi Compiling Vim-7.3.524 with clang-3.1 gives these warnings:
charset.c:1607:34: warning: illegal character encoding in string literal [-Winvalid-source-encoding] charset.c:1608:34: warning: illegal character encoding in string literal [-Winvalid-source-encoding] The charset.c source file uses strings in latin1 encoding. This seems dangerous since compilers often use utf-8 for input source file or the locale settings according to man gcc (see -finput-charset=...). So I wonder how portable it is to use latin1 strings in source files. Attached patch fixes the warning by making charset.c source use ASCII characters only. Since the fix can be error prone, I verified with "objdump -s objects/charset.o" that the generated object files are identical before and after fix (when stripping debug info which was different). Regards -- Dominque -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
fix-warning-clang-3.1.patch
Description: Binary data
