axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Senaka Fernando (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2C-1046) mod_axis2.dll load fails on Win XP SP2 (Japanese edition)
Date Fri, 07 Mar 2008 16:29:46 GMT

    [ https://issues.apache.org/jira/browse/AXIS2C-1046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12576261#action_12576261
] 

Senaka Fernando commented on AXIS2C-1046:
-----------------------------------------

Hi Bill,

Well I didn't mean that unicode == UTF-8, and this is rather an underestimation. The real
issue here is the use of multibyte strings. Even UTF-8 is multibyte. But, the problem is that
some strxx() functions can't handle this. strlen() is a good example. In the Japanese case,
the resultant length_of_string = x, means no_of_bytes = 2x. and strlen() will also return
2x. What I'm wondering is the way you got UTF-8 to work. And, also, passing UTF-8 into char
*, would rather be somewhat a hack right? One char is 1 byte and thus, 2-byte UTF-8 is not
gonna work as we expect. :D...

Once, wchar_t support is in place we can support upto 4-byte character sets. 

I'm sorry if wide-char (unicode) gave you a wrong impression that they are equivalent, as
in reality that statement doesn't make sense.

If this doesn't make sense, try strlen("Schöne Grüße") which will return 15 instead of
12. The reason is that u'll find 3 characters beyond the 256 range. Try wcslen("Schöne Grüße")
and u'll get 12 as you expect.

Read,

[1] http://msdn2.microsoft.com/en-us/library/78zh94ax(VS.80).aspx
[2] http://evanjones.ca/unicode-in-c.html
[3] http://www.i18nguy.com/unicode/c-unicode.html
[4] http://www.thescripts.com/forum/thread213440.html

Regards,
Senaka

> mod_axis2.dll load fails on Win XP SP2 (Japanese edition)
> ---------------------------------------------------------
>
>                 Key: AXIS2C-1046
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1046
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: core/deployment
>    Affects Versions: 1.3.0
>         Environment: Win XP SP2 (Japanese edition)
>            Reporter: Ikeda
>
> Apache fails to initialize and abort in following circumstance:
>  - when Apache need to load mod_Axis2.dll
>  - and if its absolute path contains non-ascii characters (2 byte Japanese)
> we confronted such thing when running Apache in Win XP Japanese

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


Mime
View raw message