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

Re: [PATCH] Remove dependency on IO::String from Git.pm test

From
Jakub Narebski <jnareb@gmail.com>
Date
Jun 18, 2008, 14:46 UTC
Message-ID
<m37icmol6y.fsf@localhost.localdomain>
In-Reply-To
<1213796224-995-1-git-send-email-michael@ndrix.org>
Michael Hendricks <michael@ndrix.org> writes:
> Instead of using IO::String to create an in-memory filehandle, use
> open() with a scalar reference as the filename.  This feature has been
> available since Perl 5.8.0 (which was released in 2002), so it should
> be available pretty much everywhere by now.

Besides if I understand correctly gitweb very much requires Perl >= 5.8 because of required Unicode support.

Nevertheless adding "use v5.8.0;" or "use 5.008_000;" would be I guess good idea.

And best solution, although perhaps unnecessary, would be to check for version >= 5.8, if older check for IO::String, and even if that fails, simply skip those tests that require in-memory filehandle (or use tempfile).

-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Michael HendricksNext: Rafael Garcia-Suarez
Message 2 of 10 in “Remove dependency on IO::String from Git.pm test”
  1. Remove dependency on IO::String from Git.pm testMichael Hendricks, Jun 18, 2008
  2. Jakub NarebskiJun 18, 2008
  3. Rafael Garcia-SuarezJun 18, 2008
  4. Johannes SchindelinJun 18, 2008
  5. Jakub NarebskiJun 18, 2008
  6. Johannes SchindelinJun 18, 2008
  7. Lea WiemannJun 18, 2008
  8. Junio C HamanoJun 18, 2008
  9. Johannes SchindelinJun 18, 2008
  10. Lea WiemannJun 19, 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.