Nicholas Clark <[EMAIL PROTECTED]> writes: > >I like this best. To me, unadorned binmode means as raw as possible.
Arrrrgl - :raw is an abomination of a name please don't use that term. "As raw as possible means read(2), write(2) - no buffering so no buffer snooping,... we don't want that normally. I think :crlf(+) and :crlf(-) or somesuch would have been so much nicer if Camel-III had not legitimized :raw >(For example; I'd thought that the Storable tests were portable to DOSish >systems, so it was somewhat surprising seeing Jarkko needing to patch them >to make them work properly on Unix) > >> Perhaps - I intend to try it and see. >> What bothers me is binmode() after :encoding is bad news if binmode() >> turns off UTF-8 ness: >> >> open(FH,">:encoding(Xxxx)",$file) >> binmode($file); >> >> The translate tables expect UTF-8 encoded chars, so blindly turning >> off PERLIO_F_UTF8 is a bad idea. >> >> I have a feeling that some of tests do that - to avoid CRLF issues. > >Can we write that > >open(FH,">:encoding(Xxxx):lf",$file) > >or something like that, with a second layer to say "no crlf" ? Except that should be :lf:encoding(Xxxx) - which can be written :perlio:encoding(Xxxx) and we can do that already - phew! > >Nicholas Clark -- Nick Ing-Simmons http://www.ni-s.u-net.com/
