[
https://issues.apache.org/jira/browse/AXIS2C-1265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13457752#comment-13457752
]
wubingqing commented on AXIS2C-1265:
------------------------------------
Version 1.5.0; Environment: windows xp sp2 chinese;
# apply the patch
patch -d. -p0 <utf8-patch.txt
But when compiler the source code, it's failed.
The error info as follow:
..\..\guththila\src\guththila_utf8.c(127) : error C2143: syntax error :
missing ';' before 'type'
..\..\guththila\src\guththila_utf8.c(128) : error C2065: 'inbyte' : undeclared
identifier
..\..\guththila\src\guththila_utf8.c(308) : error C2143: syntax error : missing
'{' before '*'
..\..\guththila\src\guththila_utf8.c(310) : error C2371:
'guththila_utf8_encoder_create' : redefinit
ion; different basic types
..\..\guththila\include\guththila_utf8.h(119) : see declaration of
'guththila_utf8_encoder_c
reate'
..\..\guththila\src\guththila_utf8.c(319) : warning C4133: 'return' :
incompatible types - from 'str
uct guththila_utf8_encoder_s *' to 'int *'
guththila_xml_parser.c
guththila_xml_writer.c
Generating Code...
..\..\guththila\src\guththila_xml_parser.c(1677) : warning C4761: integral size
mismatch in argument
; conversion supplied
..\..\guththila\src\guththila_xml_parser.c(1719) : warning C4761: integral size
mismatch in argument
; conversion supplied
NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'
Stop.
> guththila does not support Chinese and the Japanese.
> ----------------------------------------------------
>
> Key: AXIS2C-1265
> URL: https://issues.apache.org/jira/browse/AXIS2C-1265
> Project: Axis2-C
> Issue Type: Bug
> Components: guththila
> Affects Versions: 1.5.0
> Environment: windows xp sp2 japan
> Reporter: songlei
> Assignee: S.Uthaiyashankar
> Fix For: 1.7.0
>
> Attachments: utf8-patch.txt
>
>
> data:
> a.xml
> <?xml version='1.0' encoding='UTF-8'?>
> <ns:parameter xmlns:ns="urn:ns">
> <ns:unit xmlns:ns="urn:ns">
> <ns:name>name</ns:name>
> <ns:type>1</ns:type>
> <ns:displayname>門雷:名前</ns:displayname>
> <ns:value>2</ns:value>
> </ns:unit>
> </ns:parameter>
> ---------------------------------------------------------------------
> code:
> axiom_node_t *root_node = NULL;
> axiom_node_t *child = NULL;
> axiom_document_t *document = NULL;
> axiom_stax_builder_t *om_builder = NULL;
> axiom_xml_reader_t *xml_reader = NULL;
> f = fopen("a.xml","r");
> xml_reader = axiom_xml_reader_create_for_io(env, read_input_callback,
> close_input_callback, NULL, "UTF-8");
> om_builder = axiom_stax_builder_create(env, xml_reader);
> document = axiom_stax_builder_get_document(om_builder, env);
> root_node = axiom_document_get_root_element(document, env);
> axiom_document_build_all(document, env);
> child = axiom_node_get_first_child(root_node, env);
> --------------------------------------------------------------------------------------------
> result:
> The analysis result is under shows:
> <ns:parameter xmlns:ns="urn:ns">
> <ns:unit xmlns:ns="urn:ns">
> <ns:name>name</ns:name>
> <ns:type>1</ns:type>
> <ns:displayname></ns:displayname>
> </ns:unit>
> </ns:parameter>
> displayname and value lost
> ---------------------------------------------------------------------------------------------------------------
> debug:
> .\axis2c\guththila\src\guththila_xml_parser.c
> 1532 c = m->buffer.buff[m->buffer.cur_buff][m->next++ -
> 1533
> GUTHTHILA_BUFFER_PRE_DATA_SIZE
> 1534 (m->buffer)];
> 1535 return c >= 0 ? c : -1;
> c is int.
> m->buffer.buff[m->buffer.cur_buff][m->next++ - GUTHTHILA_BUFFER_PRE_DATA_SIZE
> (m->buffer)] is char.
> char scope is - 127~128.
> char[i] char [i+1] == 門
> char[i] > 128
> char Convert int, c < 0
> om_builder-done = true.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]