From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David De La Harpe Golden Newsgroups: gmane.emacs.bugs Subject: bug#6721: X11 Compound Text vs ISO 2022 Date: Sat, 24 Jul 2010 20:50:52 +0100 Message-ID: <4C4B441C.30900@harpegolden.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1280002080 12190 80.91.229.12 (24 Jul 2010 20:08:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 24 Jul 2010 20:08:00 +0000 (UTC) To: 6721@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 24 22:07:59 2010 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.69) (envelope-from ) id 1Ocl0e-0008TY-Sj for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Jul 2010 22:07:58 +0200 Original-Received: from localhost ([127.0.0.1]:39027 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ocl0V-0003Wu-4B for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Jul 2010 16:07:39 -0400 Original-Received: from [140.186.70.92] (port=47988 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ocl0P-0003We-1w for bug-gnu-emacs@gnu.org; Sat, 24 Jul 2010 16:07:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ocl0N-0007yM-Cj for bug-gnu-emacs@gnu.org; Sat, 24 Jul 2010 16:07:32 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49482) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ocl0N-0007yB-6X for bug-gnu-emacs@gnu.org; Sat, 24 Jul 2010 16:07:31 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OcklO-0000g1-BG; Sat, 24 Jul 2010 15:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: David De La Harpe Golden Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 24 Jul 2010 19:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6721 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.12800010732585 (code B ref -1); Sat, 24 Jul 2010 19:52:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Jul 2010 19:51:13 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ockka-0000fd-Pm for submit@debbugs.gnu.org; Sat, 24 Jul 2010 15:51:13 -0400 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OckkW-0000fH-Uo for submit@debbugs.gnu.org; Sat, 24 Jul 2010 15:51:11 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:43685) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OckkP-0001GQ-Kl for submit@debbugs.gnu.org; Sat, 24 Jul 2010 15:51:01 -0400 Original-Received: from [140.186.70.92] (port=56059 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OckkM-0001lD-G1 for bug-gnu-emacs@gnu.org; Sat, 24 Jul 2010 15:51:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OckkJ-0005Md-Jx for bug-gnu-emacs@gnu.org; Sat, 24 Jul 2010 15:50:56 -0400 Original-Received: from harpegolden.net ([65.99.215.13]:47831) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OckkJ-0005MO-H3 for bug-gnu-emacs@gnu.org; Sat, 24 Jul 2010 15:50:55 -0400 Original-Received: from [87.198.55.209] (87-198-55-209.ptr.magnet.ie [87.198.55.209]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "David De La Harpe Golden", Issuer "David De La Harpe Golden Personal CA rev 3" (verified OK)) by harpegolden.net (Postfix) with ESMTPSA id A9DD2683FF; Sat, 24 Jul 2010 20:50:51 +0100 (IST) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Icedove/3.0.5 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 24 Jul 2010 15:52:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org 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:38875 Archived-At: Logging issue to tracker so it doesn't disappear behind certain recent mammoth junk threads: James Cloos raised on emacs-devel: http://lists.gnu.org/archive/html/emacs-devel/2010-07/msg00255.html The problem that emacs has been sending "compound-text" using charsets not generally supported by other X11 clients. The spec for compound text seems clear enough, emacs shouldn't do that (though maybe should remain permissive in what it accepts). Emacs has compound-text and compound-text-with-extensions, the latter having support for some widely used extensions to the original spec including embedded unicode. Compound-text-with-extensions (since it supports embedded unicode) and probably compound-text should be restricted to only encoding to the known shortlist of acceptable charsets for compound-text, including some but not all of the iso2022 charsets emacs presently supports. Given UTF8_STRING support in X11, I reckon it is fairly unlikely the set of acceptable compound text charsets will be expanding much in future. Emacs should also probably use compound-text-with-extensions in the places it is currently using compound-text (or just make the former its latter)