-/* Copyright 1995-2001,2003-2004,2006-2019
+/* Copyright 1995-2001,2003-2004,2006-2019,2021
Free Software Foundation, Inc.
This file is part of Guile.
*len = input_size;
if (input_size == 0)
/* Normal EOF. */
- {
- /* Make sure iconv descriptors have been opened even if
- there were no bytes, to be sure that a decoding error
- is signalled if the encoding itself was invalid. */
- scm_port_acquire_iconv_descriptors (port, NULL, NULL);
- scm_port_release_iconv_descriptors (port);
- return EOF;
- }
+ return EOF;
/* EOF found in the middle of a multibyte character. */
if (scm_is_eq (SCM_PORT (port)->conversion_strategy,
(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)))