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.master
parent
f2817d4303
commit
c4634dfa26
|
@ -321,10 +321,10 @@ replacement if PORT is not Unicode-capable."
|
||||||
(let ((arrow "→"))
|
(let ((arrow "→"))
|
||||||
(catch 'encoding-error
|
(catch 'encoding-error
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(with-fluids ((%default-port-conversion-strategy 'error))
|
(call-with-output-string
|
||||||
(with-output-to-string
|
(lambda (port)
|
||||||
(lambda ()
|
(set-port-conversion-strategy! port 'error)
|
||||||
(display arrow)))))
|
(display arrow port))))
|
||||||
(lambda (key . args)
|
(lambda (key . args)
|
||||||
"->")))))
|
"->")))))
|
||||||
|
|
||||||
|
|
Reference in New Issue