Hi,
I suggest to revert this patch which added UTF-8 characters in include/iconv.h.in:
> From 3a8897944d46577d349993b6ffbfeaa45597152d Mon Sep 17 00:00:00 2001
> From: Bruno Haible <address@hidden>
> Date: Tue, 16 Sep 2008 23:37:17 +0000
> Subject: [PATCH] Use Unicode single-quotes in comments.
UTF-8 in source files will cause warning C4819 for non-English MSVC users.
It often comes with other serious errors as source files are not properly handled, even when it happens in code comments.
It caused libiconv failed to build on my Cygwin-MSVC Chinese Windows build.
Some inelegant solutions could be:
1. Change the Windows system locale to English before using MSVC;
2. Before "make", convert include/iconv.h file encoding from utf-8 to the system codepage. Like this:
if[ ! `regtool -q check /HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/Nls/CodePage/OEMCP` ];then
TOCODEPAGE=`regtool get /HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/Nls/CodePage/OEMCP`
cp include/iconv.h include/iconv.h.backup
iconv-c -f utf-8 -t cp"${TOCODEPAGE}" include/iconv.h 1>include/iconv.h.tmp
mv include/iconv.h.tmp include/iconv.h
make
make check
make install
mv include/iconv.h.backup include/iconv.h
3. "/utf-8" added in CFLAGS and CXXFLAGS:
See "configure" command in the attached script. I take this workaround for now.
Anyhow, revert the above patch will be the easiest way.
Sincerely,
Feiyun Wang