diff src/mule-coding.c @ 5100:3d91f0b64469

fix bad bug with escape-quoted handling -------------------- ChangeLog entries follow: -------------------- src/ChangeLog addition: 2010-03-05 Ben Wing <ben@xemacs.org> * mule-coding.c: * mule-coding.c (iso2022_encode): Horrible bug: `escape-quoted' was failing to escape-quote special characters in the 0x80 - 0x9F range. Who knows what breakage ensued? SAME BUG IN XEMACS 21.4; MUST BE FIXED THERE TOO.
author Ben Wing <ben@xemacs.org>
date Fri, 05 Mar 2010 07:16:22 -0600
parents 16112448d484
children 6c6d78781d59
line wrap: on
line diff
--- a/src/mule-coding.c	Thu Mar 04 07:26:05 2010 -0600
+++ b/src/mule-coding.c	Fri Mar 05 07:16:22 2010 -0600
@@ -1,7 +1,7 @@
 /* Conversion functions for I18N encodings, but not Unicode (in separate file).
    Copyright (C) 1991, 1995 Free Software Foundation, Inc.
    Copyright (C) 1995 Sun Microsystems, Inc.
-   Copyright (C) 2000, 2001, 2002 Ben Wing.
+   Copyright (C) 2000, 2001, 2002, 2010 Ben Wing.
 
 This file is part of XEmacs.
 
@@ -2545,7 +2545,7 @@
 	  if (EQ (charset, Vcharset_control_1))
 	    {
 	      if (XCODING_SYSTEM_ISO2022_ESCAPE_QUOTED (codesys)
-		  && fit_to_be_escape_quoted (c))
+		  && fit_to_be_escape_quoted (c - 0x20))
 		Dynarr_add (dst, ISO_CODE_ESC);
 	      /* you asked for it ... */
 	      Dynarr_add (dst, c - 0x20);