Fix coding for Cygwin Emacs when LANG=ru_RU.cp1251.
--- a/.emacs-my Sun Nov 06 00:40:26 2011 +0200
+++ b/.emacs-my Sun Nov 06 01:03:16 2011 +0200
@@ -667,6 +667,13 @@
(setq x-select-request-type '(UTF8_STRING COMPOUND_TEXT TEXT STRING))
(modify-coding-system-alist 'process ".*" 'utf-8-unix)
)
+ ((eq system-type 'cygwin)
+ (when (string-match "1251\\'" (getenv "LANG"))
+ (prefer-coding-system 'cp1251-unix)
+ (prefer-coding-system 'utf-8-unix)
+ (modify-coding-system-alist 'process ".*" 'cp1251-unix)
+ )
+ )
((eq system-type 'darwin)
nil
)