help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to change file coding system


From: Martin Monsorno
Subject: Re: how to change file coding system
Date: Tue, 23 Aug 2005 11:20:42 +0200
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux)

Peter Dyballa <Peter_Dyballa@Web.DE> writes:

> Am 19.08.2005 um 12:20 schrieb Martin Monsorno:
>
>> Peter Dyballa <Peter_Dyballa@Web.DE> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]