stumpwm-devel
[Top][All Lists]
Advanced

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

Re: [STUMP] UTF8 related bug


From: Stefan Reichör
Subject: Re: [STUMP] UTF8 related bug
Date: Thu, 01 Mar 2012 08:57:09 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)

Stefan Reichör <address@hidden> writes:

> Vladimir Sedach <address@hidden> writes:
>
>> You can check which encoding system Emacs uses for a particular buffer
>> by doing C-h C Ret
>> (http://www.delorie.com/gnu/docs/emacs/emacs_220.html). It looks like
>> the shell is doing the "right" thing by displaying the '?'
>
> (My) Emacs uses iso-latin-1-unix as coding system for file names:
> ,----
> | default-file-name-coding-system is a variable defined in `C source code'.
> | Its value is iso-latin-1-unix
> | 
> | Documentation:
> | Default coding system for encoding file names.
> | This variable is used only when `file-name-coding-system' is nil.
> | 
> | This variable is set/changed by the command `set-language-environment'.
> | User should not set this variable manually,
> | instead use `file-name-coding-system' to get a constant encoding
> | of file names regardless of the current language environment.
> `----
>
> I will experiment setting file-name-coding-system to 'utf-8.

To follow up my own mail:

I have set up my emacs to use utf-8 for most things. But I still prefer
iso-latin-1 for my text files:

  (prefer-coding-system       'utf-8)
  (set-default-coding-systems 'utf-8)
  (setq-default buffer-file-coding-system 'iso-latin-1)

Using this setting the file names are encoded in utf-8 and displayed
correctly in dired. StumpWM also no longer crashes when I open a pdf
file which name contains an umlaut :-)

This solves the problem for me.

Thanks for the pointers I got on this mailing list!

Stefan.



reply via email to

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