RE: Outputting binary data with NUL char

2000-06-24 Thread Gerald Richter
> > Is Embperl supposed to suppress the output of NUL characters? > Embperl 1.x is using NUL terminated C strings internaly, so it's interpreting a NUL char as end of string. So currently your only chance is to setup a registry script. Embperl 2.0 (on which I do currently alpha testing) will not

Outputting binary data with NUL char

2000-06-23 Thread Chris Thorman
Is Embperl supposed to suppress the output of NUL characters? Let's say for example that I want to write an embperl script that outputs a GIF (here's a trivial example for illustration purposes): [+ $http_headers_out{'Content-Type'} = 'image/gif'; local $escmode = 0; `cat test.gif`;