[jira] Commented: (YOKO-413) Unable to configure UTF-8 as yoko's native charset.

2007年8月18日 07:30:56 -0700

 [ 
https://issues.apache.org/jira/browse/YOKO-413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12520850
 ] 
Wolfgang Glas commented on YOKO-413:
------------------------------------
Well a code cleanup in the actual conversion code would be a great benfit, I 
agree. However, a charset registry, which maps OMG codeset number to JAVA 
CharSet's will be necessary anyways.
Apart from this point please have a look at my patch, since it is mostly a 
refinement of the interpretation of the codsets information inside IOR profiles.
> Unable to configure UTF-8 as yoko's native charset.
> ---------------------------------------------------
>
> Key: YOKO-413
> URL: https://issues.apache.org/jira/browse/YOKO-413
> Project: Yoko - CORBA Server
> Issue Type: Bug
> Components: orb core
> Affects Versions: v1.0-incubating-M2
> Environment: Linux jre-sun-1.5.0
> Reporter: Wolfgang Glas
> Attachments: yoko-core-20070818-orbit2-interop.patch
>
>
> SUN ORB cowardly refuses to talk utf-8 with my orbit-2 server, as I reported 
> to under the following issue:
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6567407
> Hence I gave yoko a try and unfortunately yoko too could not be configured to 
> natively talk utf-8 on the wire.
> Suspectedly, this is due to the following code in
> org.apache.yoko.orb.OBCORBA.ORB_impl.java:962 ff.:
> ************
> } else if (key.equals("yoko.orb.native_cs")) {
> int csid = org.apache.yoko.orb.OB.CodeSetDatabase.instance()
> .nameToId(value);
> if (csid != 0
> && csid != 
> org.apache.yoko.orb.OB.CodeSetDatabase.UTF8)
> nativeCs = csid;
> else {
> String err = "ORB.init: unknown value for "
> + "yoko.orb.native_cs: " + value;
> logger.error(err);
> throw new org.omg.CORBA.INITIALIZE(err);
> }
> ************
> Can any one give me clue, why UTF-8 is excluded from the valid native 
> charsets at this point. Whenever I try to impose UTF-8 on the wire using
> 
> -Dyoko.orb.native_cs=UTF-8
> The above CORBA_INITIALIZE exception is thrown.
> Please consider to allow UTF-8 as native charset or give me a hint how I can 
> successfully talk UTF-8 with a orbit-2 server using YOKO as my client.
> TIA,
> Wolfgang
-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to