mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 05:57:04 +01:00
profiles: Adjust for compatibility with Guile 2.0.5.
Reported by Andreas Enge <andreas@enge.fr>. * guix/profiles.scm (right-arrow): Use 'set-port-conversion-strategy!' instead of '%default-port-conversion-strategy'. The latter is only available in Guile 2.0.5.
This commit is contained in:
parent
f2817d4303
commit
c4634dfa26
1 changed files with 4 additions and 4 deletions
|
@ -321,10 +321,10 @@ (define (right-arrow port)
|
|||
(let ((arrow "→"))
|
||||
(catch 'encoding-error
|
||||
(lambda ()
|
||||
(with-fluids ((%default-port-conversion-strategy 'error))
|
||||
(with-output-to-string
|
||||
(lambda ()
|
||||
(display arrow)))))
|
||||
(call-with-output-string
|
||||
(lambda (port)
|
||||
(set-port-conversion-strategy! port 'error)
|
||||
(display arrow port))))
|
||||
(lambda (key . args)
|
||||
"->")))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue