From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.bugs Subject: bug#1770: 23.0.60; (message-check 'illegible-text ...) fails on eight-bit chars Date: Fri, 16 Jan 2009 16:45:56 +0900 Message-ID: References: <87k59d4apn.fsf@marauder.physik.uni-ulm.de> <871vvdee4d.fsf@marauder.physik.uni-ulm.de> Reply-To: Kenichi Handa , 1770@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1232093028 19705 80.91.229.12 (16 Jan 2009 08:03:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Jan 2009 08:03:48 +0000 (UTC) Cc: 1770@emacsbugs.donarmstrong.com, d.love@liverpool.ac.uk To: Reiner Steib Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 16 09:05:00 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LNjhI-0003O0-Cg for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Jan 2009 09:04:56 +0100 Original-Received: from localhost ([127.0.0.1]:50509 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNjg1-0000Rb-Hz for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Jan 2009 03:03:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LNjfx-0000PB-5m for bug-gnu-emacs@gnu.org; Fri, 16 Jan 2009 03:03:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LNjfv-0000OB-8G for bug-gnu-emacs@gnu.org; Fri, 16 Jan 2009 03:03:32 -0500 Original-Received: from [199.232.76.173] (port=50933 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNjfv-0000O8-2k for bug-gnu-emacs@gnu.org; Fri, 16 Jan 2009 03:03:31 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]:63392) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LNjfu-0001qH-B2 for bug-gnu-emacs@gnu.org; Fri, 16 Jan 2009 03:03:30 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LNjft-0000eU-4j for bug-gnu-emacs@gnu.org; Fri, 16 Jan 2009 03:03:29 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0G83QZx014605; Fri, 16 Jan 2009 00:03:26 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n0G7o4w8010760; Thu, 15 Jan 2009 23:50:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Kenichi Handa Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , Gnus Resent-Date: Fri, 16 Jan 2009 07:50:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 1770 X-Emacs-PR-Package: emacs,gnus X-Emacs-PR-Keywords: Original-Received: via spool by 1770-submit@emacsbugs.donarmstrong.com id=B1770.123209196210460 (code B ref 1770); Fri, 16 Jan 2009 07:50:04 +0000 Original-Received: (at 1770) by emacsbugs.donarmstrong.com; 16 Jan 2009 07:46:02 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mx1.aist.go.jp (mx1.aist.go.jp [150.29.246.133]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0G7jwic010449 for <1770@emacsbugs.donarmstrong.com>; Thu, 15 Jan 2009 23:45:59 -0800 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id n0G7jvgm021201; Fri, 16 Jan 2009 16:45:57 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp2.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id n0G7ju5q001942; Fri, 16 Jan 2009 16:45:56 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp2.aist.go.jp with ESMTP id n0G7juY5000573; Fri, 16 Jan 2009 16:45:56 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.69) (envelope-from ) id 1LNjOu-0006TJ-Dr; Fri, 16 Jan 2009 16:45:56 +0900 In-reply-to: <871vvdee4d.fsf@marauder.physik.uni-ulm.de> (message from Reiner Steib on Thu, 08 Jan 2009 21:28:50 +0100) X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Resent-Date: Fri, 16 Jan 2009 03:03:32 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:24200 Archived-At: In article <871vvdee4d.fsf@marauder.physik.uni-ulm.de>, Reiner Steib writes: > On Wed, Jan 07 2009, Dave Love wrote: > > Reiner Steib writes: > > >>> In Emacs 23, (char-charset char) returns `eight-bit'. Is adding >>> eight-bit next to eight-bit-graphic sufficient? The comment (by Dave >>> Love, CC-ed if I got X-Debbugs-CC right) seems to suggest that there's >>> more to be done. > > > > You should ask handa about that and other Mule issues. Experience shows > > it's not helpful for me to explain. > Cc-ed. Yes. For Emacs 23, adding eight-bit in the list is ok. But, I think it is better to catch non-Unicode characters (#x110000..#x3FFF7F) here too. For Emacs 23 only, we can have this simple code: (while (not (eobp)) (when (not (encode-char (char-after) 'unicode)) ;; or simply (>= (char-after) #x110000) (if (eq choice ?i) (message-kill-all-overlays) (delete-char 1) (when (eq choice ?r) (insert message-replacement-char)))) (forward-char) (skip-chars-forward mm-7bit-chars)) > Added: > ;; FIXME: Wrong for Emacs 23 (unicode) and for > ;; things like undecodable utf-8 (in Emacs 21?). > ;; Should at least use find-coding-systems-region. > ;; -- fx After filtering out those strange characters, how is a coding system decided? Is select-message-coding-system used? --- Kenichi Handa handa@m17n.org