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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 8738 in the body.
You can then email your comments to 8738 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8738; Package emacs. (Fri, 27 May 2011 09:51:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 27 May 2011 09:51:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

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 1 (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)]

Reply sent to Lars Magne Ingebrigtsen <larsi <at> gnus.org>:
You have taken responsibility. (Fri, 01 Jul 2011 11:06:02 GMT) Full text and rfc822 format available.

Notification sent to Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>:
bug acknowledged by developer. (Fri, 01 Jul 2011 11:06:02 GMT) Full text and rfc822 format available.

Message #10 received at 8738-close <at> debbugs.gnu.org (full text, mbox):

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/




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 29 Jul 2011 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 296 days ago.

Previous Next


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