Dominique Pelle wrote:
> 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).
Thanks, I'll include it. Patch applied without a warning, so I assume
there are no encoding problems. And I also compared the relevant part
of charset.o.
--
Engineers are widely recognized as superior marriage material: intelligent,
dependable, employed, honest, and handy around the house.
(Scott Adams - The Dilbert principle)
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
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