[omniORB] Hexadecimal constants

Leandro Fanzone leandro@hasar.com
Fri, 26 Apr 2002 09:46:36 -0300


A small detail, perhaps already fixed. We're currently using omni 3.0.4
on Linux x86, and an IDL with the following sentence:

const string SOME_CONSTANT = "\x1c";

generates a stub code in C++ with the following form:

const char *SOME_CONSTANT = "\0034";

this is, the same hexadecimal constant translated to octal, but
incorrectly using four digits. That string implies a two character
string: 0x03 and '4', which is incorrect. The correct output would be,
naturally, "\034".

Leandro Fanzone.