From: Michael R. <mr...@bl...> - 2004-02-14 01:31:54
|
Ah, turns out that binmode (FILEHANDLE) does what we want without resorting to any 5.8-specific features. The fix is committed. That's funny, leave it to perl 5.8 to make us have to use binmode() on a unix system. (Overall, I am very displeased with the number of horribly incompatible changes perl 5.8 has introduced. Anyone else run afoul of "vstrings"?) But I guess in this specific case, binmode() was the right thing to do anyway (in case diff-playpens ever gets ported to windows, or whatever)... Mike Paul Mineiro writes: > On Fri, 13 Feb 2004, Michael Radford wrote: > > > So maybe setting LANG is simpler; I was just nervous that it might have > > unintended consequences, and explicitly asking for the raw i/o layer > > seemed to be exactly what we want. > > i'd rather ask for what we want. the LANG thing was because i couldn't > figure out the right way to do it. > > > > >It looks like the correct solution is to detect perl >= 5.8 and then > > > >explicitly call open ($fh, "<:unix", $file) or > > > >open ($fh, "<:stdio", $file). > > what would this look like ... and does it require pragmas that are not > perl 5.005 ? > > -- p > > I don't want to have to buy MS brand toilet paper one day to make > my ass compatible. |