diff -r 33fd66648b2a -r fd26eef91bf6 .emacs-my --- a/.emacs-my Sat Jan 17 14:24:45 2015 +0200 +++ b/.emacs-my Sat Jan 17 14:35:26 2015 +0200 @@ -821,7 +821,7 @@ (modify-coding-system-alist 'process ".*" 'utf-8-unix) ) ((eq system-type 'cygwin) - (when (string-match "1251\\'" (getenv "LANG")) + (when (and (getenv "LANG") (string-match "1251\\'" (getenv "LANG"))) (prefer-coding-system 'cp1251-unix) (prefer-coding-system 'utf-8-unix) (modify-coding-system-alist 'process ".*" 'cp1251-unix)