From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Wang Diancheng Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: 23.0.60; there is a bug in xml.el [unicode version] Date: Thu, 17 Jan 2008 14:19:02 +0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1200550965 27142 80.91.229.12 (17 Jan 2008 06:22:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Jan 2008 06:22:45 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 17 07:23:02 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JFO9U-0000AJ-Uy for ged-emacs-devel@m.gmane.org; Thu, 17 Jan 2008 07:23:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JFO96-0002BU-3N for ged-emacs-devel@m.gmane.org; Thu, 17 Jan 2008 01:22:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JFO90-0002Aj-Pz for emacs-devel@gnu.org; Thu, 17 Jan 2008 01:22:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JFO8y-0002AO-NG for emacs-devel@gnu.org; Thu, 17 Jan 2008 01:22:30 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JFO8y-0002AL-Ji for emacs-devel@gnu.org; Thu, 17 Jan 2008 01:22:28 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JFO8y-0005HY-JA for emacs-devel@gnu.org; Thu, 17 Jan 2008 01:22:28 -0500 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JFO8w-0002KB-Hm for emacs-pretest-bug@gnu.org; Thu, 17 Jan 2008 01:22:26 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JFO8t-0005HA-2d for emacs-pretest-bug@gnu.org; Thu, 17 Jan 2008 01:22:26 -0500 Original-Received: from mail.redflag-linux.com ([219.237.229.196] helo=redflag-linux.com) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JFO8s-0005Ft-5o for emacs-pretest-bug@gnu.org; Thu, 17 Jan 2008 01:22:22 -0500 Original-Received: From localhost[172.16.82.142] by smtp.redflag-linux.com with Red Flag Webmail Server id 16104 for emacs-pretest-bug@gnu.org; Thu Jan 17 14:11:42 2008 +0800 X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:87006 gmane.emacs.pretest.bugs:20686 Archived-At: when calling function "xml-print" create malformed characters if XML include unicode characters. following is a patch: --- xml.el~ 2008-01-09 09:13:48.000000000 +0800 +++ xml.el 2008-01-17 13:24:18.000000000 +0800 @@ -852,10 +852,7 @@ (if (rassoc char xml-entity-alist) (concat "&" (car (rassoc char xml-entity-alist)) ";") char))) - (if (multibyte-string-p string) - (encode-coding-string string 'utf-8) - string) - "")) + string "")) (defun xml-debug-print-internal (xml indent-string) "Outputs the XML tree in the current buffer.