Package: vim-common
Version: 1:6.3-061+1
Severity: normal
Tags: patch

Hello,

my locale is zh_CN.UTF-8, and when I run `vimtutor zh', I got messed up
messaged, so I patch vim-common to make this work.

First, I run
`iconv -f gb2312 -t utf-8 -o tutor.zh.utf-8 tutor.zh.euc'
in directory /usr/share/vim/vim63/tutor, you can get file `tutor.zh.utf-8'
in attachment(gzipped).

Then I patch the `tutor.vim' in the same directory, diff file
as follows:
--- tutor.vim.old       2005-03-08 20:55:47.297735544 +0800
+++ tutor.vim   2005-03-08 20:54:49.199567808 +0800
@@ -64,6 +64,8 @@
 if s:ext =~? '\.zh'
   if &enc =~ 'big5\|cp950'
     let s:ext = ".zh.big5"
+  elseif &enc =~ "utf-8$"
+    let s:ext = ".zh.utf-8"
   else
     let s:ext = ".zh.euc"
   endif

OK, now I can use `vimtutor zh' in locale zh_CN.UTF-8, It feels good.

PS: I admit it seems not neutrality for Traditional Chinese users, but I
have no easy way to keep neutrality between Simplified Chinese users and
Traditional Chinese users, maybe someone else can give better patches.
Anyway, It's better than mess-up.

Li Daobing

            

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-686-smp-mppe
Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8)

Versions of packages vim-common depends on:
ii  vim                          1:6.3-061+1 Vi IMproved - enhanced vi editor

-- no debconf information

-- 
Li Daobing

Attachment: tutor.zh.utf-8.gz
Description: Binary data

Reply via email to