From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.bugs Subject: bug#15535: Acknowledgement (24.3.50; basic-save-buffer should update buffer-file-coding-system value if the contents were written using different coding system) Date: Mon, 07 Oct 2013 23:59:25 +0900 Message-ID: <87siwd9lf6.fsf@gnu.org> References: <871u3z49ty.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1381158021 2644 80.91.229.3 (7 Oct 2013 15:00:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Oct 2013 15:00:21 +0000 (UTC) Cc: 15535@debbugs.gnu.org, dgutov@yandex.ru To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 07 17:00:23 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VTCII-0006Kf-RA for geb-bug-gnu-emacs@m.gmane.org; Mon, 07 Oct 2013 17:00:22 +0200 Original-Received: from localhost ([::1]:60149 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTCII-0001qp-BU for geb-bug-gnu-emacs@m.gmane.org; Mon, 07 Oct 2013 11:00:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39139) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTCI6-0001q9-HZ for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2013 11:00:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VTCI1-0005Je-SD for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2013 11:00:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52152) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTCI1-0005JZ-OB for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2013 11:00:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VTCI0-0002NT-Nz for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2013 11:00:05 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kenichi Handa Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Oct 2013 15:00:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15535 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15535-submit@debbugs.gnu.org id=B15535.13811579769072 (code B ref 15535); Mon, 07 Oct 2013 15:00:04 +0000 Original-Received: (at 15535) by debbugs.gnu.org; 7 Oct 2013 14:59:36 +0000 Original-Received: from localhost ([127.0.0.1]:60444 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VTCHX-0002MF-HT for submit@debbugs.gnu.org; Mon, 07 Oct 2013 10:59:35 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:38443) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VTCHV-0002M7-Ke for 15535@debbugs.gnu.org; Mon, 07 Oct 2013 10:59:34 -0400 Original-Received: from fl1-119-240-85-246.iba.mesh.ad.jp ([119.240.85.246]:53870 helo=shatin) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1VTCHU-0003xS-7T; Mon, 07 Oct 2013 10:59:32 -0400 Original-Received: from handa by shatin with local (Exim 4.80) (envelope-from ) id 1VTCHO-000268-4D; Mon, 07 Oct 2013 23:59:26 +0900 In-Reply-To: <83vc1a5omh.fsf@gnu.org> (message from Eli Zaretskii on Sun, 06 Oct 2013 19:51:34 +0300) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:78983 Archived-At: In article <83vc1a5omh.fsf@gnu.org>, Eli Zaretskii writes: [...] > You now have foo with `undecided' as its buffer-file-coding-system. > Then: > C-u C-\ cyrillic-translit RET > abvgde > C-\ > C-x C-s > The file is saved (as UTF-8, as can be seen by examining it on disk), > but without asking for encoding, and without changing > buffer-file-coding-system to reflect the actual encoding. > What happens is that `undecided' silently encodes the buffer in UTF-8, > but never communicates that fact back to its callers. So write-region > thinks it used `undecided', as does select-safe-coding-system. The > latter is actually equipped to DTRT when the `prefer-utf-8' variant of > `undecided' is used, but that is not the case here. > Is this what was supposed to happen No. I think the behavior of 24.3 is correct. So, some change in trunk has a problem. But, as far as I remember I have not touched any codes that relate to this misbehavior. I'm now investigating what has been changed from 24.3. --- Kenichi Handa handa@gnu.org