Ethereal-dev: [Ethereal-dev] sminmpec.c character problem when build under windows

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Kelvin You <kelvin.sdc@xxxxxxxxx>
Date: Sun, 4 Dec 2005 00:49:45 +0800
Hi, friends :
I 'm building the ethereal under win2000 with the MSVC6.0
some error occured in the file: sminmpec.c

--------------------------------------------------------------------------------------------------
        cl -DWIN32 -DNULL=0 -D_MT -D_DLL -DHAVE_CONFIG_H /I. /I.. /I../wiretap /
Id:\ethereal-win32-libs\glib\include\glib-2.0  /Id:\ethereal-win32-libs\glib\lib
\glib-2.0\include  /Id:\ethereal-win32-libs\zlib123-dll\include /Id:\ethereal-wi
n32-libs\adns-1.0-win32-04\src /Id:\ethereal-win32-libs\adns-1.0-win32-04\adns_w
in32 /Id:\ethereal-win32-libs\pcre-6.3\include /Id:\ethereal-win32-libs\WPdpack\
include  -D_U_="" /Zi /W3 -Fd.\ -c sminmpec.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.

sminmpec.c
sminmpec.c(14848) : error C2001: newline in constant
sminmpec.c(14849) : error C2059: syntax error : '{'
sminmpec.c(14849) : error C2059: syntax error : ','
-------------------------------------------------------------------------------------------------

I found some "double quotation marks" at the end of string are missing
for example:
	{ 14959,	"CBR Yaz�l�m dan��manl�k A.? },

Maybe it because my OS default code page is 936(Simplifiy Chinese
GBK), the cl.exe read the file with the DBCS mode.

How can I solve this problem?
Thanks :-)