[omniORB] MacRoman codeset for Mac OS X?

Steve Sauder ssauder at northplains.com
Sun Feb 19 00:21:01 GMT 2006


Hi:

We've been using omniORB 4 for some time now to have our Mac OS-based client application communicate with our server-side server side objects, with good success.  However, I've recently been required to support foreign character sets, and in delving into the omniORB codeset implementations, I noticed that the default codeset for omniORB is ISO-8859-1, and that it doesn't appear that there even is a NCS_C variant for Mac Roman.

Is this correct?  Will I need to write my own?

One avenue that I was looking into was the use of CORBA::WString instead CORBA::String and just sending Unicode.  While I was checking all this out, I discovered another interesting thing - apparently under the XCODE build environment on Mac, sizeof(wchar_t) is, in fact, 4, so sending WString data actually entails a great deal of overhead, as each 4-byte wchar_t must be copied to/from a 2-byte UniChar during marshaling and unmarshaling.  There's apparently a whole can of worms associated with sizeof(wchar_t) being 4 on Mac, since Apple's own Unicode implementation (CFString), uses UTF-16, effectively rendering wchar_t useless on Mac OS.  I was relieved to find, in "local_config.h", a way of forcing the omniORB build to define CORBA::WChar as a 2-byte entity.  By doing that, I'm hoping to be able to support native Unicode strings, but the question above still holds for all of our existing IDL's which use 1-byte strings.       


Thanks!
Steve.
--------------------------------------------------
Steve Sauder
Chief Technical Officer
North Plains Systems Corp.

P: 416 345 1900 x 500
ssauder at northplains.com

www.northplains.com

"Bringing FOCUS to Digital Asset Management"

Confidentiality Notice:
The information contained herein is confidential and proprietary to North Plains Systems Corp. ("North Plains") and is intended for review by authorized persons only. Except as may otherwise be agreed to in writing by North Plains, any disclosure, circulation, release or use of the information contained herein is strictly prohibited 




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20060219/a8dff565/attachment.htm


More information about the omniORB-list mailing list