Correct copy/paste coding in windows.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 29 Oct 2009 11:31:47 +0200
changeset 192 8b4811c64ec4
parent 191 abe708ccf6e5
child 193 56bfc334d076
Correct copy/paste coding in windows.
.emacs-my
--- a/.emacs-my	Wed Oct 28 00:38:15 2009 +0200
+++ b/.emacs-my	Thu Oct 29 11:31:47 2009 +0200
@@ -251,10 +251,10 @@
 (prefer-coding-system 'cp866-dos)
 
 (modify-coding-system-alist 'file "\\.el" 'iso-2022-7bit)
-(cond 
+(cond
  ((equal window-system 'w32)          ; also (string-equal system-type "windows-nt")
   (progn
-    (set-selection-coding-system   'cp1251)
+    (set-selection-coding-system 'utf-16le-dos)
     (prefer-coding-system 'utf-8-unix)
     (prefer-coding-system 'cp1251-dos)
     ))