Re: [Rd] Embedded nuls in strings

2007-08-07 Thread Duncan Murdoch
On 07/08/2007 9:13 PM, Herve Pages wrote: > Duncan Murdoch wrote: >> On 07/08/2007 6:29 PM, Herve Pages wrote: > [...] >>> Same for serialization: >>> save(string0, file="string0.rda") load("string0.rda") string0 >>> [1] "ABCD" >> Of these, I'd say the serialization is the only case

Re: [Rd] Embedded nuls in strings

2007-08-07 Thread Herve Pages
Duncan Murdoch wrote: > On 07/08/2007 6:29 PM, Herve Pages wrote: [...] >> Same for serialization: >> >>> save(string0, file="string0.rda") >>> load("string0.rda") >>> string0 >> [1] "ABCD" > > Of these, I'd say the serialization is the only case where it would be > reasonable to fix the behaviour

Re: [Rd] Embedded nuls in strings

2007-08-07 Thread Duncan Murdoch
On 07/08/2007 6:29 PM, Herve Pages wrote: > Duncan Murdoch wrote: >> On 07/08/2007 5:06 PM, Herve Pages wrote: >>> Hi, >>> >>> ?rawToChar >>> 'rawToChar' converts raw bytes either to a single character string >>> or a character vector of single bytes. (Note that a single >>> charact

Re: [Rd] Embedded nuls in strings

2007-08-07 Thread Herve Pages
Duncan Murdoch wrote: > On 07/08/2007 5:06 PM, Herve Pages wrote: >> Hi, >> >> ?rawToChar >> 'rawToChar' converts raw bytes either to a single character string >> or a character vector of single bytes. (Note that a single >> character string could contain embedded nuls.) >> >> Allow

Re: [Rd] Embedded nuls in strings

2007-08-07 Thread Duncan Murdoch
On 07/08/2007 5:06 PM, Herve Pages wrote: > Hi, > > ?rawToChar > 'rawToChar' converts raw bytes either to a single character string > or a character vector of single bytes. (Note that a single > character string could contain embedded nuls.) > > Allowing embedded nuls in a string

Re: [Rd] Embedded nuls in strings

2007-08-07 Thread Steven McKinney
uot;methods" "base" > Steven McKinney Statistician Molecular Oncology and Breast Cancer Program British Columbia Cancer Research Centre email: smckinney +at+ bccrc +dot+ ca tel: 604-675-8000 x7561 BCCRC Molecular Oncology 675 West 10th Ave, Floor 4 Vancouver B.C.

[Rd] Embedded nuls in strings

2007-08-07 Thread Herve Pages
Hi, ?rawToChar 'rawToChar' converts raw bytes either to a single character string or a character vector of single bytes. (Note that a single character string could contain embedded nuls.) Allowing embedded nuls in a string might be an interesting experiment but it seems to cause s