[omniORB] omniidl and string constants with octal escapes

Brian Neal bgneal at gmail.com
Tue Dec 6 11:09:41 GMT 2005


Hi,

We are using omniORB 4.0.6 under cygwin.

I'm not sure if this is an omniORB specific question or not. I glanced
at the IDL/C++ mapping document and didn't see anything.

We have noticed that if we have IDL like the following:

const string ClassificationName = "DCE:386413db-632e-4610-9272-c4e80efd3c98";

It gets mapped into C++ as this:

const char * ClassificationName =
"DCE:\063\070\066\064\061\063db-\066\063\062e-\064\066\061\060-\071\062\067\062-c\064e\070\060efd\063c\071\070";

It looks like all the digit characters get the "octal escape" treatment.

It's the same string, but I was just curious what requirement drove
this behavior?

Thanks,
Brian Neal



More information about the omniORB-list mailing list