Archived
This forum has been archived. Please start a new discussion on GitHub.
a strange problem about slice
in Help Center
hi,
Did anyone meet such a strange problem?
I have a slice definition file, in which include some constant definitions, the definition looks like
the following:
const string cnstLabel = "1.3.6";
I complie the slice file with the following:
slice2cpp cwng.ice
The 'cnstLabel' in the generated file is translated to a strange value:
const ::std::string cnstLabel = "1\0463\0466";
BTW, I use VC6 on windows 2000, ICE 2.1.0.
thanks,
Kemp
Did anyone meet such a strange problem?
I have a slice definition file, in which include some constant definitions, the definition looks like
the following:
const string cnstLabel = "1.3.6";
I complie the slice file with the following:
slice2cpp cwng.ice
The 'cnstLabel' in the generated file is translated to a strange value:
const ::std::string cnstLabel = "1\0463\0466";
BTW, I use VC6 on windows 2000, ICE 2.1.0.
thanks,
Kemp
0
Comments
-
Thanks muchly for the bug report! I've posted a patch at http://www.zeroc.com/vbulletin/showthread.php?t=1482. The problem shows up only if a string constant contains a period, minus sign, or a non-printable character.
Cheers,
Michi.0