From: Michael R. <mr...@bl...> - 2004-02-14 00:37:46
|
fess writes: > how positive are you on this LANG interactions? Not completely, just forwarding a report that changing LANG from "en_US.UTF-8" to "en_US" fixed it. > I know that we didn't know how to handle it across multiple versions of > perl > for the perl uwget, so we set LANG="C" before any call to it. > > anyhow sounds like a good solution, does it work with old perls? No, PerlIO is only in >= 5.8. That's why we'd have to check the perl version first. 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. Mike > On Feb 13, 2004, at 11:16 AM, Michael Radford wrote: > > >On one of our clusters, the environment variable LANG was set by > >default to "en_US.UTF-8"... > > > >This apparently causes perl >= 5.8 to open filehandles with the ":utf8" > >I/O layer (see manpages for perlfunc, PerlIO), and so > >ext/bin/publish/diff-playpens fails complaining about malformed UTF-8. > > > >An easy solution is just to set LANG=en_US. However, it seems like > >diff-playpens should treat everything as binary no matter what. > > > >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). > > > >I can get to this eventually, but if anyone cares to beat me to it, > >feel free... :) > > > >Mike > > > > > >------------------------------------------------------- > >SF.Net is sponsored by: Speed Start Your Linux Apps Now. > >Build and deploy apps & Web services for Linux with > >a free DVD software kit from IBM. Click Now! > >http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > >_______________________________________________ > >Wigwam-devel mailing list > >Wig...@li... > >https://lists.sourceforge.net/lists/listinfo/wigwam-devel > |