Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

set-language-environment and M-x shell

I am using shells using UTF-8 and others using Latin-1. However, when I change the default with set-language-environment, also the existing shells change their buffer-coding-system - indicator in the status-line.

How can I make a shell-buffer stick to its encoding?

like image 536
false Avatar asked Oct 18 '22 11:10

false


1 Answers

Have you tried looking at the Emacs Wiki? It has a tip on how to edit the ~/.emacs file:

Working around a broken LANG

If your LANG is not set up correctly, and you don’t want to fix it, you can do the setup in your ~/.emacs file:

(set-language-environment "Latin-1")

Usually you would do it interactively: ‘C-x RET l’.

To check the environment you want see ‘M-x describe-language-environment’ and TAB to see all completions.

like image 105
Clomp Avatar answered Oct 27 '22 23:10

Clomp