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: Fri, 12 Aug 2005 15:33:22 +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 1123854245 17972 80.91.229.2 (12 Aug 2005 13:44:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Aug 2005 13:44:05 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 12 15:44:03 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E3ZoD-0007Za-CK for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Aug 2005 15:42:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E3ZrQ-0007bM-OS for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Aug 2005 09:46:12 -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: 45 Original-NNTP-Posting-Host: p7223e3d4.np.gmx.net Original-X-Trace: schlund.de 1123853567 17084 212.227.35.114 (12 Aug 2005 13:32:47 GMT) Original-X-Complaints-To: usenet@schlund.de Original-NNTP-Posting-Date: Fri, 12 Aug 2005 13:32:47 +0000 (UTC) User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) Original-Xref: shelby.stanford.edu gnu.emacs.help:133156 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:28681 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28681 Eli Zaretskii writes: >> From: Martin Monsorno >> Date: Fri, 12 Aug 2005 10:34:31 +0200 >> >> I have a c-file which file (the command) claims to be a "UTF-8 Unicode >> C program text". Now I want to make it a 8859 file, so in the emacs >> buffer visiting it I say: >> C-x f iso-8859-1-unix >> and >> C-x C-s > > That is the right way. > >> Afterwards, file (the command) says the same as before. Did I miss >> something? > > Do you have a reason to believe `file' more than you believe Emacs? Not generally. But as the file is under source control and "cvs diff" shows those many lines containing german umlauts, I suppose that file is working correctly. BTW: the real culprit is eclipse, that converted the file when writing >:( > > That is, is it possible that `file' lies? Can you find a character in > the file after translation that is not Latin-1, and if you can, what > is that character? > � doesn't seem like an 'ü' to me > > One possibility is that you have in that file a character whose code > is outside the valid range of Latin-1 codepoints. But that's a wild > guess, you need to find such a character and type "C-u C-x =" with the > cursor on it, to see what it is. the umlauts are not de-/encoded correctly, don't know whom to blame (however, most of the times it's eclipse). and i also don't know how to handle this problem. -- Martin