git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Add test-tr: poor-man tr

From
Alex Riesen <raa.lkml@gmail.com>
Date
Jun 13, 2008, 17:26 UTC
Message-ID
<20080613172634.GB5671@steel.home>
In-Reply-To
<20080613060215.GB26768@sigill.intra.peff.net>
Jeff King, Fri, Jun 13, 2008 08:02:15 +0200:
Show 14 quoted lines
> On Thu, Jun 12, 2008 at 10:32:45PM +0200, Alex Riesen wrote:
> 
> > That was the problem. ActiveState Perl always replaces LF in the
> > output with CRLF, which caused mismatches with template files in some
> > tests (even the generated templates had LF line endings, cygwins tools
> > follow that convention). At first, I tried to get by putting
> > "binmode(STDOUT)" into every test, but this became boring with a time.
> > Besides, the lines get very long and ugly (and make conflict resolving
> > harder).
> 
> Does ActiveState respect the PERLIO environment variable? I haven't
> played with it much, but my understanding is that setting
> PERLIO=:unix:perlio should give you sane behavior (the default on
> Windows should be PERLIO=:unix:crlf).

I didn't know about it (and managed to miss it when I looked to workaround the problem. I even looked into the manpage documenting environment variables!)

Yes, it works. It has side effects (the scripts of some build processes will be affected), but that's already something...

Previous: Jeff KingNext: Jeff King
Message 10 of 14 in “Add test-tr: poor-man tr”
  1. Add test-tr: poor-man trAlex Riesen, Jun 11, 2008
  2. Use test-tr in the testsAlex Riesen, Jun 11, 2008
  3. Alex RiesenJun 11, 2008
  4. Jeff KingJun 11, 2008
  5. Alex RiesenJun 12, 2008
  6. Jeff KingJun 12, 2008
  7. Jeff KingJun 12, 2008
  8. Alex RiesenJun 12, 2008
  9. Jeff KingJun 13, 2008
  10. Alex RiesenJun 13, 2008
  11. Jeff KingJun 13, 2008
  12. Alf ClementJun 12, 2008
  13. Johannes SchindelinJun 12, 2008
  14. Add test-tr: poor-man trAlex Riesen, Jun 12, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.