On June 1, 2005 04:23 pm, Andy Ross wrote:
> My guess is that the property tree doesn't care either, and it's
> simply the output routine that is truncating the string due to the
> embedded null.  Is there some sample code to exhibit the problem?
>
> Andy

Do you mean something like this?

# ********** ********** ********** ********** **********
str = chr(01) ~ chr(80) ~ chr(194) ~ chr(0) ~ chr(0) ~ chr(0);

node = props.globals.getNode("/experiment", 1);

print ("Writing the following characters to the property tree:");
for (i = 0; i < size(str); i = i + 1){
        print(strc(str, i));
}

node.setValue(str);

tmp = node.getValue();
print ("The following characters were retrieved from the property tree:");
for (j = 0; j < size(tmp); j = j + 1){
        print(strc(tmp, j));
}
# ********** ********** ********** ********** **********


Ampere

_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to