Add io wrapper handling UTF-8 BOM.
This commit is contained in:
parent
6b8bffdd41
commit
d72cde9c04
5 changed files with 80 additions and 9 deletions
|
@ -36,11 +36,11 @@
|
|||
(import scheme
|
||||
(chicken base)
|
||||
(chicken keyword)
|
||||
(chicken io)
|
||||
(chicken irregex)
|
||||
(chicken condition)
|
||||
testing
|
||||
progress)
|
||||
progress
|
||||
util-io)
|
||||
|
||||
;; Curry version of line parser with configurable cell separator and
|
||||
;; string delimiter. Returns a list of lists of strings.
|
||||
|
@ -110,7 +110,7 @@
|
|||
(lambda (ex)
|
||||
(ret #f))
|
||||
(lambda ()
|
||||
(let ((lines (read-lines (open-input-file fn))))
|
||||
(let ((lines (read-lines/no-bom (open-input-file fn))))
|
||||
(apply csv-parse-lines lines args)))))))
|
||||
|
||||
;; Splits CSV into header and body based on the first empty row.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue