From 449ca87bdb5ba9ad384c32a306e36c2946c5b832 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Tue, 15 Jan 2013 15:09:48 +0100 Subject: [PATCH] ASCII is not ISO-8859-1 * libguile/ports.c (scm_i_set_default_port_encoding): An encoding of ASCII is not the same as ISO-8859-1, because it does not allow characters above 128. Fix this. --- libguile/ports.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libguile/ports.c b/libguile/ports.c index 22db1019f..0aacacc06 100644 --- a/libguile/ports.c +++ b/libguile/ports.c @@ -866,9 +866,7 @@ scm_i_set_default_port_encoding (const char *encoding) scm_misc_error (NULL, "tried to set port encoding fluid before it is initialized", SCM_EOL); - if (encoding_matches (encoding, "ASCII") - || encoding_matches (encoding, "ANSI_X3.4-1968") - || encoding_matches (encoding, "ISO-8859-1")) + if (encoding_matches (encoding, "ISO-8859-1")) scm_fluid_set_x (SCM_VARIABLE_REF (default_port_encoding_var), SCM_BOOL_F); else scm_fluid_set_x (SCM_VARIABLE_REF (default_port_encoding_var),