Bug#457582: /usr/bin/vimtutor: vimtutor shows wrong codecs in zh_*

Chih-Han Chen aguaithefreak at gmail.com
Sun Dec 23 17:22:38 UTC 2007


Package: vim-runtime
Version: 1:7.1-167+1
Severity: normal
File: /usr/bin/vimtutor
Tags: l10n

#########################################
                                        #
in /usr/share/vim/vim71/tutor/tutor.vim #
line 72 to 78                           #
                                        #
if s:ext =~? '\.zh'                     #
  if &enc =~ 'big5\|cp950'              #
    let s:ext = ".zh.big5"              #
  else                                  #
    let s:ext = ".zh.euc"               #
  endif                                 #
endif                                   #
                                        #
#########################################

There must be some bug in encode 
it shows broken character with every local env I use
(and every terminal with any codec)
I can't even use English tutor
I'll try to fix it and send a patch if I could
I believe its just some trouble between UTF-8/Big-5/GB


-- System Information:
Debian Release: lenny/sid
  APT prefers proposed-updates
  APT policy: (500, 'proposed-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-3-686-bigmem (SMP w/1 CPU core)
Locale: LANG=zh_TW.UTF-8, LC_CTYPE=zh_TW.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

vim-runtime depends on no packages.

Versions of packages vim-runtime recommends:
ii  vim                          1:7.1-167+1 Vi IMproved - enhanced vi editor
ii  vim-gnome                    1:7.1-167+1 Vi IMproved - enhanced vi editor -
ii  vim-gtk                      1:7.1-167+1 Vi IMproved - enhanced vi editor -
ii  vim-lesstif                  1:7.1-167+1 Vi IMproved - enhanced vi editor -
ii  vim-tiny                     1:7.1-167+1 Vi IMproved - enhanced vi editor -

-- no debconf information





More information about the pkg-vim-maintainers mailing list