From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: decode-coding-region returns octal escapes Date: Sat, 07 Feb 2009 14:00:57 +0200 Message-ID: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1234008092 322 80.91.229.12 (7 Feb 2009 12:01:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 7 Feb 2009 12:01:32 +0000 (UTC) Cc: emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 07 13:02:43 2009 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 1LVltR-0005sv-Eh for ged-emacs-devel@m.gmane.org; Sat, 07 Feb 2009 13:02:41 +0100 Original-Received: from localhost ([127.0.0.1]:32852 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LVls8-0007OB-Ag for ged-emacs-devel@m.gmane.org; Sat, 07 Feb 2009 07:01:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LVls2-0007O4-Tu for emacs-devel@gnu.org; Sat, 07 Feb 2009 07:01:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LVlrz-0007Nl-AJ for emacs-devel@gnu.org; Sat, 07 Feb 2009 07:01:13 -0500 Original-Received: from [199.232.76.173] (port=55582 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LVlrz-0007Ni-5I for emacs-devel@gnu.org; Sat, 07 Feb 2009 07:01:11 -0500 Original-Received: from mtaout1.012.net.il ([84.95.2.1]:42213) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LVlry-0007Ld-K5 for emacs-devel@gnu.org; Sat, 07 Feb 2009 07:01:10 -0500 Original-Received: from conversion-daemon.i-mtaout1.012.net.il by i-mtaout1.012.net.il (HyperSendmail v2007.08) id <0KEP00H002PVJP00@i-mtaout1.012.net.il> for emacs-devel@gnu.org; Sat, 07 Feb 2009 14:01:20 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.229.238.131]) by i-mtaout1.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KEP005J92Q7H260@i-mtaout1.012.net.il>; Sat, 07 Feb 2009 14:01:20 +0200 (IST) X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 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:108854 Archived-At: To reproduce: emacs -Q M-x find-file-literally RET etc/tutorials/TUTORIAL.de RET (The German tutorial is just an example, you can use any one, but others might need different values of the 3rd argument to decode-coding-region below.) Now mark a region that includes non-ASCII characters, for example, this one, on line 7 of the file: da\337 die CONTROL-Taste gedr\374ckt sein mu\337 and type M-: (decode-coding-region (mark) (point) 'latin-1 t) RET The result is that the echo area shows this: #("da\337 die CONTROL-Taste gedr\374ckt sein mu\337" 0 39 (charse= t iso-8859-1)) and the *Messages* buffer shows this: #("da\303\237 die CONTROL-Taste gedr\303\274ckt sein mu\303\237" = 0 39 (charset iso-8859-1)) But I expected to see this in both cases: #("da=DF die CONTROL-Taste gedr=FCckt sein mu=DF" 0 39 (charset i= so-8859-1)) Is this a bug? If not, what is the explanation for what I see? Why are raw bytes inserted instead of decoded characters?