mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02:00
ui: Don't use '%default-port-encoding' to set the encoding of string ports.
* guix/ui.scm (right-arrow): Call 'set-port-encoding!' to set PORT's
encoding; remove use of 'with-fluids'. This is for compatibility with
Guile 2.2 where the encoding of string ports is not influenced by
%DEFAULT-PORT-ENCODING.
* tests/ui.scm ("show-manifest-transaction"): Likewise.
This commit is contained in:
11
tests/ui.scm
11
tests/ui.scm
@@ -248,9 +248,12 @@ Second line" 24))
|
||||
(lambda ()
|
||||
(show-manifest-transaction store m t)))))
|
||||
(string-match "guile\t1.8.8 -> 2.0.9"
|
||||
(with-fluids ((%default-port-encoding "ISO-8859-1"))
|
||||
(with-error-to-string
|
||||
(lambda ()
|
||||
(show-manifest-transaction store m t)))))))))
|
||||
(with-error-to-string
|
||||
(lambda ()
|
||||
;; In Guile 2.2, %DEFAULT-PORT-ENCODING doesn't
|
||||
;; influence the encoding of string ports.
|
||||
(set-port-encoding! (current-error-port)
|
||||
"ISO-8859-1")
|
||||
(show-manifest-transaction store m t))))))))
|
||||
|
||||
(test-end "ui")
|
||||
|
||||
Reference in New Issue
Block a user