ASCII is not ISO-8859-1
authorAndy Wingo <wingo@pobox.com>
Tue, 15 Jan 2013 14:09:48 +0000 (15:09 +0100)
committerAndy Wingo <wingo@pobox.com>
Tue, 15 Jan 2013 15:37:01 +0000 (16:37 +0100)
* 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

index 22db101..0aacacc 100644 (file)
@@ -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),