To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=79572
                 Issue #|79572
                 Summary|#pragma setlocale("C") needed with localized MS VS .NE
                        |T compilers
               Component|lingucomponent
                 Version|OOo 2.2.1 RC3
                Platform|All
                     URL|
              OS/Version|Windows XP
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|spell checking
             Assigned to|[EMAIL PROTECTED]
             Reported by|zhangxiaofei





------- Additional comments from [EMAIL PROTECTED] Fri Jul 13 08:40:57 +0000 
2007 -------
When compiling $SRC_ROOT/lingucomponent/source/spellcheck/hunspell/hunspell.cxx
with Chinese Microsoft Visual Studio .NET Compiler. The following errors occurs:

-----------------------------------------------------
build -- version: 1.155

=============
Building project lingucomponent
=============
/cygdrive/f/OOo/SRC680_m217/lingucomponent/inc
-------------
/cygdrive/f/OOo/SRC680_m217/lingucomponent/source/lingutil
-------------
/cygdrive/f/OOo/SRC680_m217/lingucomponent/source/hyphenator/altlinuxhyph/libhnj
-------------
/cygdrive/f/OOo/SRC680_m217/lingucomponent/source/spellcheck/hunspell
dmake: Executing shell macro: $(FIND) . -name
"{$(subst,$($(WINVERSIONNAMES)_MAJOR),* $(subst,$(UPD)$(DLLPOSTFIX),
$(SHL1TARGET)))}.xml"
------------------------------
Making: ../../../wntmsci10.pro/slo/hunspell.obj
guw.exe /cygdrive/c/PROGRA~1/MICROS~1.NET/Vc7/bin/cl.exe  -Zm500 -Zc:forScope
-GR -c -nologo -Gs  -Gy -Ob1 -Oxs -Oy- -Gd  -I. 
-I../../../wntmsci10.pro/inc/hunspell -I../inc -I../../../inc/pch
-I../../../inc/lingucomponent -I../../../inc -I../../../WIN/inc
-I../../../wntmsci10.pro/inc -I.
-I/cygdrive/f/ooo/SRC680_m217/solver/680/wntmsci10.pro/inc/stl
-I/cygdrive/f/ooo/SRC680_m217/solver/680/wntmsci10.pro/inc/external
-I/cygdrive/f/ooo/SRC680_m217/solver/680/wntmsci10.pro/inc
-I/cygdrive/f/ooo/SRC680_m217/solenv/wntmsci10/inc
-I/cygdrive/f/ooo/SRC680_m217/solenv/inc -I/cygdrive/f/ooo/SRC680_m217/res
-I/cygdrive/f/ooo/SRC680_m217/solver/680/wntmsci10.pro/inc/stl
-I/cygdrive/d/OOEnv/J2SDK1~1.2_0/include/win32
-I/cygdrive/d/OOEnv/J2SDK1~1.2_0/include -I/cygdrive/d/OOEnv/PSDK/include
-I/cygdrive/c/PROGRA~1/MICROS~1.NET/Vc7/include
-I/cygdrive/d/OOEnv/DXSDK2~1/include -I/cygdrive/d/OOEnv/DXSDK2~1/include    
-I/cygdrive/f/ooo/SRC680_m217/solver/680/wntmsci10.pro/inc/offuh -I.
-I../../../res -I. -Wall -wd4061 -wd4063 -wd4127 -wd4191 -wd4217 -wd4250 -wd4251
    -wd4275 -wd4290 -wd4292 -wd4294 -wd4344 -wd4347 -wd4355 -wd4503 -wd4511    
-wd4512 -wd4514 -wd4611 -wd4619 -wd4625 -wd4626 -wd4640 -wd4675 -wd4686    
-wd4710 -wd4711 -wd4786 -wd4800 -wd4820   -DWNT -DWNT -DNT351 -DMSC -DM1310
-DINTEL -D_X86_=1 -DFULL_DESK -DSTLPORT_VERSION=400 -DWINVER=0x400
-D_WIN32_IE=0x400 -D_MT -DCPPU_ENV=msci -DSUPD=680 -DPRODUCT -DNDEBUG
-DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DCUI -DSOLAR_JAVA -DSRC680=SRC680
  -DSHAREDLIB -D_DLL_ -DWIN32 -D_MT -D_DLL -DWIN32 -D_MT -D_DLL  
-DEXCEPTIONS_OFF  -Fo../../../wntmsci10.pro/slo/hunspell.obj
/cygdrive/f/OOo/SRC680_m217/lingucomponent/source/spellcheck/hunspell/hunspell.cxx

guw.exe /cygdrive/c/PROGRA~1/MICROS~1.NET/Vc7/bin/cl.exe @/tmp/mkjGiCDY
hunspell.cxx
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(338) :
error C2015: too many characters in constant
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(338) :
error C2018: unknown character '0xdf'
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(338) :
error C2001: newline in constant
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(338) :
error C2143: syntax error : missing ')' before 'constant'
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(339) :
error C2143: syntax error : missing ';' before '}'
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(339) :
warning C4555: expression has no effect; expected expression with side-effect
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(347) :
error C2001: newline in constant
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(348) :
error C2297: '*' : illegal, right operand has type 'char *'
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(348) :
error C2001: newline in constant
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(349) :
error C2143: syntax error : missing ';' before 'if'
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(413) :
error C2001: newline in constant
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(413) :
error C2015: too many characters in constant
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(414) :
error C2143: syntax error : missing ')' before '}'
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(414) :
error C2143: syntax error : missing ')' before '}'
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(414) :
error C2143: syntax error : missing ')' before '}'
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(414) :
error C2143: syntax error : missing ';' before '}'
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(414) :
warning C4390: ';' : empty controlled statement found; is this the intent?
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(471) :
error C2001: newline in constant
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(471) :
error C2015: too many characters in constant
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(472) :
error C2146: syntax error : missing ')' before identifier 'wl2'
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(472) :
error C2143: syntax error : missing ')' before ';'
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(472) :
error C2143: syntax error : missing ')' before ';'
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(472) :
error C2143: syntax error : missing ')' before ';'
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(472) :
error C2143: syntax error : missing ')' before ';'
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(475) :
error C2143: syntax error : missing ')' before '}'
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(475) :
error C2143: syntax error : missing ';' before ')'
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(492) :
error C2059: syntax error : 'if'
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(495) :
error C2059: syntax error : 'if'
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(495) :
error C2143: syntax error : missing ';' before '{'
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(495) :
error C2447: '{' : missing function header (old-style formal list?)
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(513) :
error C2059: syntax error : 'if'
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(513) :
error C2143: syntax error : missing ';' before '{'
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(513) :
error C2447: '{' : missing function header (old-style formal list?)
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(519) :
error C2001: newline in constant
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(523) :
error C2001: newline in constant
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(526) :
error C2001: newline in constant
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(528) :
error C2059: syntax error : 'if'
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(528) :
error C2143: syntax error : missing ';' before '{'
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(528) :
error C2447: '{' : missing function header (old-style formal list?)
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(560) :
error C2059: syntax error : '}'
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(560) :
error C2143: syntax error : missing ';' before '}'
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(560) :
error C2059: syntax error : '}'
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(562) :
error C2059: syntax error : '}'
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(562) :
error C2143: syntax error : missing ';' before '}'
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(562) :
error C2059: syntax error : '}'
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(565) :
error C2143: syntax error : missing ';' before '{'
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(565) :
error C2447: '{' : missing function header (old-style formal list?)
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(742) :
error C2001: newline in constant
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(742) :
error C2015: too many characters in constant
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(743) :
warning C4353: nonstandard extension used: constant 0 as function expression. 
Use '__noop' function intrinsic instead
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(743) :
error C2109: subscript requires array or pointer type
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(743) :
error C2143: syntax error : missing ')' before ';'
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(743) :
error C2143: syntax error : missing ')' before ';'
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(743) :
error C2143: syntax error : missing ')' before ';'
f:\OOo\SRC680_m217\lingucomponent\source\spellcheck\hunspell\hunspell.cxx(743) :
fatal error C1903: unable to recover from previous error(s); stopping 
compilation
dmake:  Error code 2, while making '../../../wntmsci10.pro/slo/hunspell.obj'
---* tg_merge.mk *---

ERROR: Error 65280 occurred while making
/cygdrive/f/OOo/SRC680_m217/lingucomponent/source/spellcheck/hunspell
---------------------------------------------------------------------------

This issue is similar to issue 36782.
Adding "#pragma setlocale("C")" to the start of hunspell.cxx would fix the 
problem.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to