[Orbit-python-list] demarshal sequence<octet>
Status: Inactive
Brought to you by:
tack
|
From: Hauke B. <hau...@we...> - 2002-02-21 15:17:21
|
Hello,
as sequence<octet> is afaik the only way to transmit binary data in CORBA,
it is somehow annoying that the demarshalling code in O-P only works with
0-terminated strings.
I suggest to change the line in file demarshal.c, line 243 in 0.3.1, 246
in CVS
seq = PyString_FromString (string);
to
seq = PyString_FromStringAndSize(string,len);
with this patch, you can receive binary data correctly (there might still
be a problem with marshalling binary data, I haven't checked this)
Cheerio,
hauke
|