From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dave Love Newsgroups: gmane.emacs.devel Subject: Re: iso-8859-1 and non-latin-1 chars Date: 19 Dec 2002 22:33:14 +0000 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200212090608.PAA24291@etlken.m17n.org> <200212161406.gBGE6KM30409@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1040337356 11974 80.91.224.249 (19 Dec 2002 22:35:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 19 Dec 2002 22:35:56 +0000 (UTC) Cc: Kenichi Handa Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18P9Gb-000368-00 for ; Thu, 19 Dec 2002 23:35:45 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18P9Hu-0004Xx-00 for ; Thu, 19 Dec 2002 23:37:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18P9Eg-0006di-05 for emacs-devel@quimby.gnus.org; Thu, 19 Dec 2002 17:33:46 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18P9EQ-0006cU-00 for emacs-devel@gnu.org; Thu, 19 Dec 2002 17:33:30 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18P9EN-0006bb-00 for emacs-devel@gnu.org; Thu, 19 Dec 2002 17:33:28 -0500 Original-Received: from albion.dl.ac.uk ([148.79.80.39]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18P9EN-0006b7-00; Thu, 19 Dec 2002 17:33:27 -0500 Original-Received: from fx by albion.dl.ac.uk with local (Exim 3.35 #1 (Debian)) id 18P9EA-0008Ec-00; Thu, 19 Dec 2002 22:33:14 +0000 Original-To: "Stefan Monnier" Original-Lines: 24 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-cc: rms@gnu.org Original-cc: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:10292 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10292 "Stefan Monnier" writes: > One of the problems is that before the recent change, iso-latin-1 was > sometimes outputting non-latin-1 characters (i.e. bytes between > 128 and 160). That breaks ispell and can break other programs as well. As I said, any such problems need fixing in ispell.el and friends. However, I don't think the above causes ispell misalignment errors -- the original complaint (due to iso 2022 escape sequences being produced). Anyway, the current code does nothing about C1 characters, and there's no parameter to change that behaviour: (memq 'iso-latin-1 (find-coding-systems-string (string (make-char 'latin-iso8859-1 #xa3) 128 (make-char 'latin-iso8859-2 #xa3)))) => nil (encode-coding-string (string (make-char 'latin-iso8859-1 #xa3) 128 (make-char 'latin-iso8859-2 #xa3)) 'iso-latin-1) => "\243\200?"