changeset 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 4a6b680a9577
children ec6e767f8fc5
files src/ChangeLog src/mule-coding.c
diffstat 2 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Thu Mar 04 07:26:05 2010 -0600
+++ b/src/ChangeLog	Fri Mar 05 07:16:22 2010 -0600
@@ -1,3 +1,11 @@
+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.
+
 2010-03-03  Ben Wing  <ben@xemacs.org>
 
 	* lrecord.h: Fix outdated comment.
--- 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);