I have a lot of filenames in Russian in my file system. Every time I close Emacs if I had eshell opened, it shows a *temp*
buffer with a list of directories. And asks 2 questions:
Select coding system (default utf-8):
I click enter
Selected encoding utf-8 disagrees with latin-2 specified by file contents. Really save (else edit coding cookies and try again)? (y or n)
I click "y", enter
What file cookies is he talking about? Where can I set it to utf-8, so this question is never asked again?
Update
I found the wrong file: ~/.emacs.d/eshell/lastdir
. I saved this: "яОяНяОяННяОуВяНЕяОяОяННяОяНОяОяНВяОяНА" instead of normal Russian name. Then it tries to save it again.
(setq locale-coding-system 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(set-selection-coding-system 'utf-8)
(prefer-coding-system 'utf-8)
– mclear Apr 5 '17 at 3:23