mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
derivations: Set input port to UTF-8 in `read-derivation'.
* guix/derivations.scm (read-derivation): Set DRV-PORT's encoding to UTF-8.
This commit is contained in:
parent
58ddf10ea3
commit
df7bbd3813
1 changed files with 4 additions and 0 deletions
|
@ -171,6 +171,10 @@ (define (make-input-drvs x)
|
|||
'()
|
||||
x))
|
||||
|
||||
;; The contents of a derivation are typically ASCII, but choosing
|
||||
;; UTF-8 allows us to take the fast path for Guile's `scm_getc'.
|
||||
(set-port-encoding! drv-port "UTF-8")
|
||||
|
||||
(let loop ((exp (read drv-port))
|
||||
(result '()))
|
||||
(match exp
|
||||
|
|
Loading…
Reference in a new issue