mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-23 20:05:32 +02:00
Invalid charset at EOF does not cause decoding error
* libguile/ports.c (peek_iconv_codepoint): If the input has no bytes, there's little point in raising a decoding error here. Therefore remove the needless iconv acquisition, harmonising with suspendable-ports. * test-suite/tests/ports.test ("port-encoding"): Update test to include some input so that the exception gets raised.
This commit is contained in:
parent
c802ed4832
commit
5ea8c69e91
2 changed files with 3 additions and 10 deletions
|
@ -1314,7 +1314,7 @@
|
|||
|
||||
(pass-if-exception "set-port-encoding!, wrong encoding"
|
||||
exception:miscellaneous-error
|
||||
(let ((p (open-input-string "")))
|
||||
(let ((p (open-input-string "q")))
|
||||
(set-port-encoding! p "does-not-exist")
|
||||
(read p)))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue