From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Martin Monsorno Newsgroups: gmane.emacs.help Subject: Re: how to change file coding system Date: Tue, 23 Aug 2005 11:20:42 +0200 Organization: Schlund + Partner AG Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1124789597 23590 80.91.229.2 (23 Aug 2005 09:33:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 23 Aug 2005 09:33:17 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 23 11:33:07 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E7V8z-00009m-8i for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Aug 2005 11:32:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E7VCk-000678-VH for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Aug 2005 05:36:27 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!news.schlund.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 103 Original-NNTP-Posting-Host: p7223e3d4.np.gmx.net Original-X-Trace: schlund.de 1124788784 7837 212.227.35.114 (23 Aug 2005 09:19:44 GMT) Original-X-Complaints-To: usenet@schlund.de Original-NNTP-Posting-Date: Tue, 23 Aug 2005 09:19:44 +0000 (UTC) User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) Original-Xref: shelby.stanford.edu gnu.emacs.help:133399 Original-To: help-gnu-emacs@gnu.org 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:28929 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28929 Peter Dyballa writes: > Am 19.08.2005 um 12:20 schrieb Martin Monsorno: > >> Peter Dyballa writes: >> >>> I have GNU Emacs 21.3.50 from CVS in rare use too. >> >> You have 21.3.50 from CVS? I have a stable 21.4.1 version! But I >> tried out 22.0.50 from cvs and: it NEVER does show me an 'ü'. >> Instead it always displays the code: \374 in the latin-1 file, and >> \303\274 in the UTF-8 file. > > What about a nice fontset? > [...] > It looks ugly here ... 'though it needs to be continued! This is about the problem with emacs 22, correct? Could you please send this again as attachement: the line wraps corrupted the code a little. This would be easier to me than fixing it manually. >> Specifying the coding system in the headerline doesn't change >> anything: buffer-file-coding-system's value remains raw-text-unix. > > Then you're doing something the wrong way ... Yes, but what? The value of buffer-file-coding-system stays the same (raw-text-unix), whatever method to load a file I choose. > At least my experience (>10a) tells me so. This code never failed > for me (and I am no politician): > > -*- coding: iso-8859-15; -*- > >> >>> And yes, I meant and I wrote C-x RET r. Usually I first view a file's >>> contents and judge then if I need to change the encoding Emacs uses by >>> default. >> >> C-h k C-x RET r is undefined >> --> C-x RET r is undefined >> > > C-h b shows, amongst many others: > > C-x RET l set-language-environment > C-x RET c universal-coding-system-argument > C-x RET C-\ set-input-method > C-x RET X set-next-selection-coding-system > C-x RET x set-selection-coding-system > C-x RET p set-buffer-process-coding-system > C-x RET k set-keyboard-coding-system > C-x RET t set-terminal-coding-system > C-x RET F set-file-name-coding-system > C-x RET r revert-buffer-with-coding-system > C-x RET f set-buffer-file-coding-system here it is (emacs 21.4.1): C-x RET l set-language-environment C-x RET c universal-coding-system-argument C-x RET C-\ set-input-method C-x RET X set-next-selection-coding-system C-x RET x set-selection-coding-system C-x RET p set-buffer-process-coding-system C-x RET k set-keyboard-coding-system C-x RET t set-terminal-coding-system C-x RET f set-buffer-file-coding-system (describe-function revert-buffer-with-coding-system) --> Debugger entered--Lisp error: (void-variable revert-buffer-with-coding-system) Seems your emacs is better than mine ... > BTW: to which value is LC_CTYPE set? LC_ALL? LANG? monsorno@mmdev ~ $ locale LANG=de_DE.UTF-8 LC_CTYPE="de_DE.UTF-8" LC_NUMERIC="de_DE.UTF-8" LC_TIME="de_DE.UTF-8" LC_COLLATE=POSIX LC_MONETARY="de_DE.UTF-8" LC_MESSAGES="de_DE.UTF-8" LC_PAPER="de_DE.UTF-8" LC_NAME="de_DE.UTF-8" LC_ADDRESS="de_DE.UTF-8" LC_TELEPHONE="de_DE.UTF-8" LC_MEASUREMENT="de_DE.UTF-8" LC_IDENTIFICATION="de_DE.UTF-8" LC_ALL= Starting emacs with "LANG= emacs" does not change anything. ??? -- Martin