Subject: bug#8738: closed (Re: bug#8738: 23.3.50; encode-coding-string does not set last-coding-system-used)

From: [email-masked] (GNU bug Tracking System)
Date: Fri, 01 Jul 2011 11:06:02 +0000

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 [email-masked].

-- 
8738: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8738
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#8738: 23.3.50; encode-coding-string does not set last-coding-system-used
From: Lars Magne Ingebrigtsen <[email-masked]>
To: Kazuhiro Ito <[email-masked]>
Cc: [email-masked]
Date: Fri, 01 Jul 2011 13:04:42 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Kazuhiro Ito <[email-masked]> 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/

Subject: 23.3.50; encode-coding-string does not set last-coding-system-used
From: Kazuhiro Ito <[email-masked]>
To: [email-masked]
Date: Fri, 27 May 2011 18:50:22 +0900
List-Id: <debbugs-submit.debbugs.gnu.org>

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