Clojure

GC Issue 121: slurp should accept an encoding name

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: Release 1.1
  • Component/s: None
  • Labels:
    None
  • Approval:
    Ok

Description

Reported by cemer...@snowtide.com, Jun 09, 2009

clojure.core/slurp currently does not accept an encoding to use when
reading the content from the provided path.  Using the system-default
encoding is a very common failure pattern.

Attached is a patch which adds an encoding argument to slurp (while
retaining the existing behaviour of falling back on the system-default
encoding when one is not specified).

Activity

Hide
Assembla Importer added a comment -
Show
Assembla Importer added a comment - oranenj said: [file:byFSiOw4ur3Od2eJe5aVNr]
Hide
Assembla Importer added a comment -

cemerick said: (In [[r:d97dfc8791e87dbd7727eb3b76d3b62f11de9089]]) add an optional encoding argument to slurp. Fixes #125

Signed-off-by: Chouser <chouser@n01se.net>

Branch: master

Show
Assembla Importer added a comment - cemerick said: (In [[r:d97dfc8791e87dbd7727eb3b76d3b62f11de9089]]) add an optional encoding argument to slurp. Fixes #125 Signed-off-by: Chouser <chouser@n01se.net> Branch: master

People

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

Dates

  • Created:
    Updated:
    Resolved: