compat: Allow binary 'open-file' on Mes.
* gash/compat.scm [mes] (open-file): Allow "rb" and "wb" modes.
This commit is contained in:
parent
334aa0c0ff
commit
ca36e71447
|
@ -250,8 +250,12 @@
|
|||
|
||||
(define (open-file filename mode)
|
||||
(cond
|
||||
((string=? mode "r") (open-input-file filename))
|
||||
((string=? mode "w") (open-output-file filename))
|
||||
((or (string=? mode "r")
|
||||
(string=? mode "rb"))
|
||||
(open-input-file filename))
|
||||
((or (string=? mode "w")
|
||||
(string=? mode "wb"))
|
||||
(open-output-file filename))
|
||||
(else (error "Unsupported file mode" mode))))
|
||||
|
||||
;; Because Mes is not careful when resolving syntax, this will
|
||||
|
|
Loading…
Reference in New Issue