From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?S=E9bastien_Vauban?= Newsgroups: gmane.emacs.help Subject: Emacs refusing to switch to iso-latin-1 Date: Mon, 11 Feb 2008 12:25:13 +0100 Organization: Sebastien Vauban Message-ID: <87y79rohuu.fsf@mundaneum.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1202730035 21111 80.91.229.12 (11 Feb 2008 11:40:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Feb 2008 11:40:35 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 11 12:40:57 2008 Return-path: Envelope-to: geh-help-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 1JOX1t-0003dH-Ds for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Feb 2008 12:40:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOX1Q-00059M-33 for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Feb 2008 06:40:28 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!t-online.de!storethat.news.telefonica.de!telefonica.de!news.germany.com!ecngs!feeder.ecngs.de!feed1.news.be.easynet.net!reader0.news.be.easynet.net!not-for-mail Original-Newsgroups: gnu.emacs.help Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAElBMVEUAAAAAAP+LRRP0pGC+vr7///+7mT1iAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cBBwMODhglKe4AAAEsSURBVCjPbZNBboQwDEV/Cd4X9QJRThApmn0XYW+Jyf2v0m+HhqDBgiAe9rcTG7QHw/1Vn2Ar8gBb/ocywSN3qK9T3z4eFDB4eApocBpeBs1RSykoJd8gQcm8pGmHXFso3ajnmsqV0TnYDQkOfXUfN5NwaI7AWTVOyEhcu1aHmdWItHddUVUcUgUBCkitu8V6ditHVOVdqzl2EQ1ZVGTbdK0V7cqn8vWzoU5Q/bF9Y/Y0cRU1xwkys5dJ+Dt6pBDWifcNQml8Gh2JVmPSoQzo7en0grswkxrUGYJ70hSxxAGr7ZMwYcHIzprpi7TENEE1xtiYxixRlCfPBsUUrwHD7uGIwATrbnODJcVrPpVn3hxiGloem/S+z3CtuzUSMo83N4DPH+F0evwR3P4A2k+75838OKQAAAAASUVORK5CYII= X-Www-site: Under construction... User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1://xQmyDLRelMZ/xmeilfYxsEPg4= Original-Lines: 70 Original-NNTP-Posting-Date: 11 Feb 2008 11:25:14 GMT Original-NNTP-Posting-Host: 81.188.7.152 Original-X-Trace: 1202729114 reader0.news.be.easynet.net 1485 [::ffff:81.188.7.152]:57178 Original-X-Complaints-To: abuse@be.easynet.net Original-Xref: shelby.stanford.edu gnu.emacs.help:156035 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:51412 Archived-At: Hi, For a couple of weeks, I've chosen to select utf-8 as my default coding system. For the sake of facility, I resisted for years, but I'd have to adapt sooner or later, so... --8<---------------cut here---------------start------------->8--- ;; system locale to use for formatting time values (setq system-time-locale "en_US.utf8") ;; default coding system (for new files) (prefer-coding-system 'utf-8) ;; to copy and paste to and from Emacs through the clipboard (set-selection-coding-system 'utf-8) --8<---------------cut here---------------end--------------->8--- Doing so, my Important settings are now: --8<---------------cut here---------------start------------->8--- 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_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t --8<---------------cut here---------------end--------------->8--- My problem is that, when creating of updating files for some applications, I sometimes have to output pure iso-latin-1... I did create a new file, from a scratch buffer. It was thus considered as utf-8 format. I told emacs to save the file in iso-latin-1-unix, with `C-x f iso-latin-1-unix'. Note - BTW, it'd be better if it was called `C-x s' (for saving), like `C-x r' is used for revert. I see: o the coding system flag changing from `U' to `1', and o the modified flag from `--' to `**'. Excellent... But, when I do my `C-x C-s', just after it's done, it see back `-U:--' in my modeline. Checking with `C-u C-x =3D' or with `hexl-mode', I see that the file is still in utf-8; its size did not change neither... So, I can't save in iso-latin-1... I could reproduce it both under Windows and under Linux. And it "works" that way 100% of the times. Thanks for your help!! Best regards, Seb --=20 S=E9bastien=A0Vauban