As *VC log* pass commit message in UTF-8 encoding I override possible locale
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 16 Jun 2010 00:02:00 +0300
changeset 405 bef33c83b3a0
parent 401 4e91288dbd84
child 406 c7289ca7bfbe
As *VC log* pass commit message in UTF-8 encoding I override possible locale settings for svn (for Windows). Also assumed that I use LANG=ru_RU.cp1251 under Cygwin.
.emacs-my
--- a/.emacs-my	Wed May 19 00:21:08 2010 +0300
+++ b/.emacs-my	Wed Jun 16 00:02:00 2010 +0300
@@ -822,7 +822,8 @@
 (if (equal window-system 'w32)
     (progn
       (modify-coding-system-alist 'process "cvs" '(cp1251-dos . cp1251-dos))
-      (modify-coding-system-alist 'process "svn" '(cp866-dos . cp1251-dos))
+      (modify-coding-system-alist 'process "svn" '(cp1251 . cp1251))
+      (setq vc-svn-checkin-switches '("--encoding" "utf-8"))
       ))
 
 ;; (setq-default vc-svn-register-switches "--encoding cp1251")