GNU bug report logs - #8738
23.3.50; encode-coding-string does not set last-coding-system-used

Previous Next

Package: emacs;

Reported by: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>

Date: Fri, 27 May 2011 09:51:02 UTC

Severity: normal

Found in version 23.3.50

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#8738: closed (23.3.50; encode-coding-string does not set
 last-coding-system-used)
Date: Fri, 01 Jul 2011 11:06:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Fri, 01 Jul 2011 13:04:42 +0200
with message-id <m339iqi7n9.fsf <at> quimbies.gnus.org>
and subject line Re: bug#8738: 23.3.50; encode-coding-string does not set last-coding-system-used
has caused the GNU bug report #8738,
regarding 23.3.50; encode-coding-string does not set last-coding-system-used
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
8738: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8738
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>
To: bug-gnu-emacs <at> gnu.org
Subject: 23.3.50; encode-coding-string does not set last-coding-system-used
Date: Fri, 27 May 2011 18:50:22 +0900
[Message part 3 (text/plain, inline)]
When I start emacs (emacs-23 branch and trunk) with -Q and evaluate
below code, I receive unexpected result.

(list
 (progn
   (decode-coding-string "" 'iso-8859-1)
   last-coding-system-used)
 (progn
   (encode-coding-string "" 'no-conversion)
   last-coding-system-used))

It returns

(iso-8859-1 iso-8859-1)

But I expect below result

(iso-8859-1 no-conversion)

Please see the attached patch.
-- 
Kazuhiro Ito
[coding.c.diff (application/octet-stream, attachment)]
[Message part 5 (message/rfc822, inline)]
From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>
Cc: 8738-close <at> debbugs.gnu.org
Subject: Re: bug#8738: 23.3.50;
	encode-coding-string does not set last-coding-system-used
Date: Fri, 01 Jul 2011 13:04:42 +0200
Kazuhiro Ito <kzhr <at> d1.dion.ne.jp> writes:

> It returns
>
> (iso-8859-1 iso-8859-1)
>
> But I expect below result
>
> (iso-8859-1 no-conversion)

Thanks; I've applied your patch to Emacs 24.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/


This bug report was last modified 13 years and 325 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.