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: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>
Subject: bug#8738: closed (Re: bug#8738: 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 bug report

#8738: 23.3.50; encode-coding-string does not set last-coding-system-used

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 8738 <at> debbugs.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: 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/

[Message part 3 (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 4 (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)]

This bug report was last modified 14 years and 18 days ago.

Previous Next


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