From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Elmar Zander Newsgroups: gmane.emacs.bugs Subject: bug#4712: File encoding Date: Tue, 13 Oct 2009 11:12:51 +0200 Message-ID: Reply-To: Elmar Zander , 4712@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1255503965 13019 80.91.229.12 (14 Oct 2009 07:06:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Oct 2009 07:06:05 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 14 09:05:54 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 1Mxxvj-0003qh-Ly for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Oct 2009 09:05:52 +0200 Original-Received: from localhost ([127.0.0.1]:60382 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mxxvj-000252-6Y for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Oct 2009 03:05:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mxdf4-0001j2-SI for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2009 05:27:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mxdf0-0001hx-3Q for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2009 05:27:18 -0400 Original-Received: from [199.232.76.173] (port=37845 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mxdez-0001hm-H8 for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2009 05:27:13 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:49965) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mxdey-0002Uv-PA for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2009 05:27:13 -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 n9D9RAiv013724; Tue, 13 Oct 2009 02:27:10 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n9D9K4pp012262; Tue, 13 Oct 2009 02:20:04 -0700 Resent-Date: Tue, 13 Oct 2009 02:20:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Elmar Zander Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Tue, 13 Oct 2009 09:20:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4712 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125542527211224 (code B ref -1); Tue, 13 Oct 2009 09:20:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 13 Oct 2009 09:14:32 +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 n9D9EU8n011217 for ; Tue, 13 Oct 2009 02:14:31 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MxdSe-0000Ee-T5 for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2009 05:14:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MxdSa-0000Cu-39 for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2009 05:14:27 -0400 Original-Received: from [199.232.76.173] (port=54359 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxdSZ-0000Ch-Jy for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2009 05:14:23 -0400 Original-Received: from valkyrie.sc.cs.tu-bs.de ([134.169.77.151]:54100) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MxdSZ-0000I4-7V for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2009 05:14:23 -0400 Original-Received: from ezander by valkyrie.sc.cs.tu-bs.de with local (Exim 4.69) (envelope-from ) id 1MxdR5-0002Ra-7C for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2009 11:12:51 +0200 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Tue, 13 Oct 2009 05:27:18 -0400 X-Mailman-Approved-At: Wed, 14 Oct 2009 03:05:24 -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:31915 Archived-At: Hi! my source file begins with the following lines #!/usr/bin/perl # -*- coding: iso-8859-1 -*- # I definitely need the latin-1 encoding here because the script is supposed to do some non-standard translations from latin-1 to html entities. However, whenever I try to save the file I get the message: Selected encoding mule-utf-8-unix disagrees with iso-8859-1-unix specified by file contents. Really save (else edit coding cookies and try again)? (yes or no) It doesn't help setting the buffer-file-coding system, like M-x set-buffer-file-coding-system latin-1 I get then buffer-file-coding-system is a variable defined in `C source code'. Its value is latin-1-unix Local in buffer html_translate; global value is mule-utf-8 but after saving (ignoring the warning) again: buffer-file-coding-system is a variable defined in `C source code'. Its value is mule-utf-8-unix Hmm, so it completely ignores my settings. It would be nice if emacs either at least gave me the choice between latin-1 and utf-8 (instead of just yes or no) or tell me how the hell to "edit the coding cookies" (I have no clue what that is and also extensive internet search and manual reading didn't turn that up). Regards, Elmar In GNU Emacs 22.3.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2009-03-31 on raven, modified by Debian configured using `configure '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs22:/etc/emacs:/usr/local/share/emacs/22.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.3/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.3/leim' '--with-x=yes' '--with-x-toolkit=athena' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_AU.UTF-8 locale-coding-system: utf-8 default-enable-multibyte-characters: t Major mode: Perl Minor modes in effect: encoded-kbd-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t line-number-mode: t Recent input: A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O H ESC [ 5 ~ ESC [ 5 ~ ESC [ 5 ~ ESC [ 5 ~ ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A C-x C-s C-g C-x C-s y e s RET C-z ESC O B ESC O A SPC DEL C-x C-s C-g ESC x r e p o TAB r TAB RET Recent messages: Quit Making completion list... Type C-x 4 C-o RET to restore the other window. call-interactively: Beginning of buffer [2 times] Quit Wrote /globalfs/VALKYRIEHOME/ezander/institut/www/html/wir_htmllib/html_translate Quit Auto-saving... Making completion list... Loading emacsbug...done