[omniORB] omniidl and string constants with octal escapes

Duncan Grisby duncan at grisby.org
Wed Dec 7 14:43:59 GMT 2005


On Tuesday 6 December, Brian Neal wrote:

> 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?

No requirement. It's a bug. omniidl has a list of characters that are
safe to use without escaping, and the digits weren't in the list for
some reason. I've fixed it in CVS.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --



More information about the omniORB-list mailing list