all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 23.0.60; there is a bug in xml.el [unicode version]
@ 2008-01-17  6:19 Wang Diancheng
  2008-01-17 17:22 ` Mark A. Hershberger
  0 siblings, 1 reply; 2+ messages in thread
From: Wang Diancheng @ 2008-01-17  6:19 UTC (permalink / raw)
  To: emacs-pretest-bug


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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: 23.0.60; there is a bug in xml.el [unicode version]
  2008-01-17  6:19 23.0.60; there is a bug in xml.el [unicode version] Wang Diancheng
@ 2008-01-17 17:22 ` Mark A. Hershberger
  0 siblings, 0 replies; 2+ messages in thread
From: Mark A. Hershberger @ 2008-01-17 17:22 UTC (permalink / raw)
  To: emacs-devel; +Cc: emacs-pretest-bug

Wang Diancheng <dcwang@redflag-linux.com> writes:

> when calling function "xml-print" create malformed characters if XML include
> unicode characters. following is a patch:

Applied to the unicode branch with a comment about why it differs from
the main branch.

-- 
http://hexmode.com/
GPG Fingerprint: 7E15 362D A32C DFAB E4D2  B37A 735E F10A 2DFC BFF5

Ideas create idols; only wonder leads to knowing.
    -- St. Gregory of Nyssa

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-01-17 17:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-17  6:19 23.0.60; there is a bug in xml.el [unicode version] Wang Diancheng
2008-01-17 17:22 ` Mark A. Hershberger

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.