Re: IO::Socket::INET and utf-8

2003-07-02 Thread Nick Ing-Simmons
Martin J. Evans <[EMAIL PROTECTED]> writes: >> Attached patch calls PerlIO_binmode() on IoOFP if it exists and >> isn't same as IoIFP. It silences the warning on my quick-check >> test. > > > >Thanks Nick. The patch worked fine for me against stock 5.8.0 sources >(it was 2 lines off but applied fi

Re: IO::Socket::INET and utf-8

2003-07-01 Thread Martin J. Evans
Nick Ing-Simmons wrote: Nick Ing-Simmons <[EMAIL PROTECTED]> writes: Martin J. Evans <[EMAIL PROTECTED]> writes: A socket is a file handle so : binmode($sock,":utf8"); should work. I'm obviously missing something rather fundamental here. Not you - us. How can we have got this far without some

Re: IO::Socket::INET and utf-8

2003-07-01 Thread Nick Ing-Simmons
Nick Ing-Simmons <[EMAIL PROTECTED]> writes: >Martin J. Evans <[EMAIL PROTECTED]> writes: >>> >>> A socket is a file handle so : >>> >>> binmode($sock,":utf8"); >>> >>> should work. >>I'm obviously missing something rather fundamental here. > >Not you - us. > >How can we have got this far witho

Re: IO::Socket::INET and utf-8

2003-07-01 Thread Nick Ing-Simmons
Martin J. Evans <[EMAIL PROTECTED]> writes: >Dan Kogai wrote: >> On Tuesday, July 1, 2003, at 05:49 PM, Martin J. Evans wrote: >> >>> Nick Ing-Simmons wrote: >>> Martin J. Evans <[EMAIL PROTECTED]> writes: A socket is a file handle so : binmode($sock,":utf8"); should work. >>

Re: IO::Socket::INET and utf-8

2003-07-01 Thread Martin J. Evans
Dan Kogai wrote: On Tuesday, July 1, 2003, at 05:49 PM, Martin J. Evans wrote: Nick Ing-Simmons wrote: Martin J. Evans <[EMAIL PROTECTED]> writes: A socket is a file handle so : binmode($sock,":utf8"); should work. This does not seem to work. My code looks like this: $self->{_socket} =

Re: IO::Socket::INET and utf-8

2003-07-01 Thread Dan Kogai
On Tuesday, July 1, 2003, at 05:49 PM, Martin J. Evans wrote: Nick Ing-Simmons wrote: Martin J. Evans <[EMAIL PROTECTED]> writes: A socket is a file handle so : binmode($sock,":utf8"); should work. This does not seem to work. My code looks like this: $self->{_socket} = IO::Socket::INET->new(

Re: IO::Socket::INET and utf-8

2003-07-01 Thread Martin J. Evans
Nick Ing-Simmons wrote: Martin J. Evans <[EMAIL PROTECTED]> writes: I have a module based on IO::Socket::INET which has a method which should be able to send UTF-8 across the socket. When I call the method with a UTF-8 string it does a: print $sock $string where $sock was returned by IO::Socke

Re: IO::Socket::INET and utf-8

2003-07-01 Thread Nick Ing-Simmons
Martin J. Evans <[EMAIL PROTECTED]> writes: >I have a module based on IO::Socket::INET which has a method which >should be able to send UTF-8 across the socket. When I call the method >with a UTF-8 string it does a: > >print $sock $string > >where $sock was returned by IO::Socket::INET and $strin

IO::Socket::INET and utf-8

2003-07-01 Thread Martin J. Evans
I have a module based on IO::Socket::INET which has a method which should be able to send UTF-8 across the socket. When I call the method with a UTF-8 string it does a: print $sock $string where $sock was returned by IO::Socket::INET and $string contains UTF-8 characters. I get a warning: Wid