To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=93433
Issue #|93433
Summary|build breaks in libxml2 on Korean Windows due to speci
|al character
Component|tools
Version|OOO300m4
Platform|PC
URL|
OS/Version|Windows Vista
Status|NEW
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P3
Subcomponent|code
Assigned to|mh
Reported by|jeongkyu
------- Additional comments from [EMAIL PROTECTED] Wed Sep 3 15:15:07 +0000
2008 -------
The following error occurred in libxml2 while I was building OOO300_m4.
----------------------------------------
testapi.c
..\testapi.c : warning C4819: The file contains a character that cannot be repre
sented in the current code page (949). Save the file in Unicode format to
preven
t data loss
..\testapi.c(294) : error C2001: newline in constant
..\testapi.c(295) : error C2143: syntax error : missing ')' before 'return'
NMAKE : fatal error U1077: 'c:\PROGRA~1\MICROS~1.0\VC\bin\cl.exe' :
return code
'0x2'
Stop.
----------------------------------------
And I found the problematic code line includes special character which is not
correctly translated on Korean Windows. I guess this applies to Chinese and
Japanese Windows too.
static xmlChar gen_xmlChar(int no, int nr ATTRIBUTE_UNUSED) {
if (no == 0) return('a');
if (no == 1) return(' ');
if (no == 2) return((xmlChar) 'ΓΈ'); << Here is the problematic line
return(0);
}
A workaround for me was to convert the encoding of the file into utf8 using
the following commands.
$ piconv -f iso-8859-1 -t utf8
./wntmsci12.pro/misc/build/libxml2-2.6.31/testapi.c
> testapi.c.utf8
$ cp testapi.c.utf8 ./wntmsci12.pro/misc/build/libxml2-2.6.31/testapi.c
---------------------------------------------------------------------
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]