From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Norbert Eisinger Newsgroups: gmane.emacs.bugs Subject: bug#4816: change of coding system without inquiry Date: Wed, 28 Oct 2009 00:03:53 +0100 Message-ID: <4AE77C59.5060106@informatik.uni-muenchen.de> Reply-To: eisinger@informatik.uni-muenchen.de, 4816@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1256850758 3961 80.91.229.12 (29 Oct 2009 21:12:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Oct 2009 21:12:38 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 29 22:12:31 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N3cII-0007LK-Rd for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Oct 2009 22:12:31 +0100 Original-Received: from localhost ([127.0.0.1]:37044 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3cII-0006V3-5A for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Oct 2009 17:12:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N2vRj-0006b9-1U for bug-gnu-emacs@gnu.org; Tue, 27 Oct 2009 19:27:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N2vRe-0006aT-ES for bug-gnu-emacs@gnu.org; Tue, 27 Oct 2009 19:27:22 -0400 Original-Received: from [199.232.76.173] (port=41670 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N2vRe-0006aO-AP for bug-gnu-emacs@gnu.org; Tue, 27 Oct 2009 19:27:18 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:35767) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N2vRd-00075M-IE for bug-gnu-emacs@gnu.org; Tue, 27 Oct 2009 19:27:18 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9RNRELs011198; Tue, 27 Oct 2009 16:27:15 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n9RNA5LI009457; Tue, 27 Oct 2009 16:10:05 -0700 Resent-Date: Tue, 27 Oct 2009 16:10:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Norbert Eisinger Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Tue, 27 Oct 2009 23:10:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4816 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12566846377849 (code B ref -1); Tue, 27 Oct 2009 23:10:05 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 27 Oct 2009 23:03:57 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9RN3sJO007846 for ; Tue, 27 Oct 2009 16:03:56 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N2v50-0005hU-9v for bug-gnu-emacs@gnu.org; Tue, 27 Oct 2009 19:03:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N2v4u-0005gc-Bu for bug-gnu-emacs@gnu.org; Tue, 27 Oct 2009 19:03:53 -0400 Original-Received: from [199.232.76.173] (port=58056 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N2v4u-0005gU-3B for bug-gnu-emacs@gnu.org; Tue, 27 Oct 2009 19:03:48 -0400 Original-Received: from acheron.ifi.lmu.de ([129.187.214.135]:46450) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N2v4t-0002mz-9m for bug-gnu-emacs@gnu.org; Tue, 27 Oct 2009 19:03:47 -0400 Original-Received: from [10.153.74.162] (koro.pms.ifi.lmu.de [141.84.9.33]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: eisinger) by acheron.ifi.lmu.de (Postfix) with ESMTP id B280D94A1FC for ; Wed, 28 Oct 2009 00:03:44 +0100 (CET) User-Agent: Thunderbird 2.0.0.23 (X11/20090817) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Tue, 27 Oct 2009 19:27:22 -0400 X-Mailman-Approved-At: Thu, 29 Oct 2009 17:12:20 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:32278 Archived-At: When I edit a non-latin-1 character into a latin-1 file and then save it,= Emacs saves the file in UTF-8 without inquiry. It omits the dialogue that= would inform me about the offending character and would offer me to selec= t a coding system for saving. Below is a description for Emacs 22.2 (Ubuntu). Other people could reproduce the behavior in Emacs 22.1 (Ubuntu) and 23.1. I do get the dialogue when I change the second Emacs invocation below to ~$ env LC_CTYPE=3DC /usr/bin/emacs -Q /tmp/l1 If suppression of the dialogue is intended and not a bug: is there some variable with which I can specify that I want to get that dialogue anyway? Norbert Eisinger =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ~$ /usr/bin/emacs -Q ,----[ C-h l ] | =C3=A4 =C3=B6 =C3=BC C-x f i = s o - l a t i n - 1 - u n i x C-x C-s C-a C-k / t m p / l 1 C-h l `---- ~$ file /tmp/l1 /tmp/l1: ISO-8859 text ~$ /usr/bin/emacs -Q /tmp/l1 ,----[ C-h l ] | M-> E u r o s i g n SPC =E2=82=AC SPC i n s e r t e d C-x C-s C-h l `---- ,----[ *Messages* ] | ("/usr/bin/emacs" "-Q" "/tmp/l1") | For information about GNU Emacs and the GNU system, type C-h C-a. | Mark set | Wrote /tmp/l1 `---- ,---- | In GNU Emacs 22.2.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) | of 2008-09-05 on vernadsky, modified by Ubuntu | Windowing system distributor `The X.Org Foundation', version 11.0.10600= 000 | configured using `configure '--build=3Di486-linux-gnu' '--host=3Di486-= linux-gnu' '--prefix=3D/usr' '--sharedstatedir=3D/var/lib' '--libexecdir=3D= /usr/lib' '--localstatedir=3D/var' '--infodir=3D/usr/share/info' '--mandi= r=3D/usr/share/man' '--with-pop=3Dyes' '--enable-locallisppath=3D/etc/ema= cs22:/etc/emacs:/usr/local/share/emacs/22.2/site-lisp:/usr/local/share/em= acs/site-lisp:/usr/share/emacs/22.2/site-lisp:/usr/share/emacs/site-lisp:= /usr/share/emacs/22.2/leim' '--with-x=3Dyes' '--with-x-toolkit=3Dathena' '--with-toolkit-scroll-bars' 'build_alias=3Di486-linux-gnu' 'host_alias=3D= i486-linux-gnu' 'CFLAGS=3D-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=3D5000 -g -O= 2' 'LDFLAGS=3D-g -Wl,--as-needed' 'CPPFLAGS=3D'' | | Important settings: | value of $LC_ALL: | value of $LC_COLLATE: nil | value of $LC_CTYPE: de_DE.utf8 | value of $LC_MESSAGES: nil | value of $LC_MONETARY: nil | value of $LC_NUMERIC: nil | value of $LC_TIME: de_DE.utf8 | value of $LANG: en_US.UTF-8 | locale-coding-system: utf-8 | default-enable-multibyte-characters: t | | Major mode: Fundamental | | Minor modes in effect: | tooltip-mode: t | tool-bar-mode: t | mouse-wheel-mode: t | menu-bar-mode: t | file-name-shadow-mode: t | global-font-lock-mode: t | font-lock-mode: t | blink-cursor-mode: t | unify-8859-on-encoding-mode: t | utf-translate-cjk-mode: t | auto-compression-mode: t | line-number-mode: t | transient-mark-mode: identity `---- ~$ file /tmp/l1 /tmp/l1: UTF-8 Unicode text =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D