Quick solution: generate tutor.ru.utf-8 from tutor.ru (KOI8-R). This will work right now.
Better solution: keep tutor.ru.utf-8, generate .cp1251 and .koi8 from it and detect all encodings in tutor.vim. vimtutor will fall back to english in "unsupported" locales (ru_RU.ISO8859-5) for example. Attached patch for quick solution. Better solution can wait till 7.1. When, by the way? -- Regards, Sir Raorn.
diff -cdrN ../vim70-orig/runtime/tutor/Makefile runtime/tutor/Makefile
*** ../vim70-orig/runtime/tutor/Makefile Mon Jun 7 18:32:39 2004
--- runtime/tutor/Makefile Fri Sep 1 17:21:29 2006
***************
*** 3,9 ****
# The Japanese tutor exists in three encodings. Use the UTF-8 version as the
# original and create the others with conversion.
! all: tutor.ja.sjis tutor.ja.euc tutor.ko.euc
tutor.ja.sjis: tutor.ja.utf-8
nkf -WXs tutor.ja.utf-8 > tutor.ja.sjis
--- 3,9 ----
# The Japanese tutor exists in three encodings. Use the UTF-8 version as the
# original and create the others with conversion.
! all: tutor.ja.sjis tutor.ja.euc tutor.ko.euc tutor.ru.utf-8
tutor.ja.sjis: tutor.ja.utf-8
nkf -WXs tutor.ja.utf-8 > tutor.ja.sjis
***************
*** 13,15 ****
--- 13,18 ----
tutor.ko.euc: tutor.ko.utf-8
iconv -f UTF-8 -t EUC-KR tutor.ko.utf-8 > tutor.ko.euc
+
+ tutor.ru.utf-8: tutor.ru
+ iconv -f KOI8-R -t UTF-8 tutor.ru > tutor.ru.utf-8
diff -cdrN ../vim70-orig/runtime/tutor/tutor.vim runtime/tutor/tutor.vim
*** ../vim70-orig/runtime/tutor/tutor.vim Sat Mar 18 23:20:36 2006
--- runtime/tutor/tutor.vim Fri Sep 1 17:24:51 2006
***************
*** 103,113 ****
let s:ext = ".sk.cp1250"
endif
! " The Russian tutor is available in two encodings, guess which one to use.
! " This segment is from the above lines and modified by
! " Alexey I. Froloff <[EMAIL PROTECTED]> for Russian vim tutorial
! if s:ext =~? '\.ru' && &enc =~ 1251
! let s:ext = ".ru.cp1251"
endif
" Somehow ".ge" (Germany) is sometimes used for ".de" (Deutsch).
--- 103,115 ----
let s:ext = ".sk.cp1250"
endif
! " The Russian tutor is available in three encodings, guess which one to use.
! if s:ext =~? '\.ru'
! if &enc == "utf-8"
! let s:ext = ".ru.utf-8"
! elseif &enc =~ 1251
! let s:ext = ".ru.cp1251"
! endif
endif
" Somehow ".ge" (Germany) is sometimes used for ".de" (Deutsch).
signature.asc
Description: Digital signature
