Clojure

slurp fails on /proc files (linux)

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Declined
  • Affects Version/s: Release 1.3
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    linux

Description

On my machine,
(slurp "/proc/cpuinfo")
fails with:
java.io.IOException: Argument invalide (NO_SOURCE_FILE:0)

whereas the following succeeds:
(with-open [f (java.io.FileReader. "/proc/cpuinfo")] (slurp f))

Activity

People

  • Assignee:
    Unassigned
    Reporter:
    Romain
Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: