Debian Bug report logs - #107856
enable CJK handling ability

version graph

Package: vim; Maintainer for vim is Debian Vim Maintainers <pkg-vim-maintainers@lists.alioth.debian.org>; Source for vim is src:vim.

Reported by: Tomohiro KUBOTA <tkubota@riken.go.jp>

Date: Mon, 6 Aug 2001 23:48:01 UTC

Severity: wishlist

Found in version 5.8.007-2

Done: Wichert Akkerman <wichert@cistron.nl>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Wichert Akkerman <wakkerma@debian.org>:
Bug#107856; Package vim. Full text and rfc822 format available.

Acknowledgement sent to Tomohiro KUBOTA <tkubota@riken.go.jp>:
New Bug report received and forwarded. Copy sent to Wichert Akkerman <wakkerma@debian.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Tomohiro KUBOTA <tkubota@riken.go.jp>
To: submit@bugs.debian.org
Subject: enable CJK handling ability
Date: Tue, 07 Aug 2001 08:50:12 +0900
Package: vim
Version: 5.8.007-2
Severity: wishlist

Though Vim has ability to handle CJK multibyte encodings,
it is not activated even by default.  The following patch
enables proper encoding setting according to LC_CTYPE locale.

Note that this setting is not needed for Vim version 6.0 
(in beta status) because Vim 6.0 is locale-sensible in itself.


--- vim-5.8.007/debian/runtime/vimrc.old	Sat Aug  4 15:57:08 2001
+++ vim-5.8.007/debian/runtime/vimrc	Sat Aug  4 16:00:09 2001
@@ -117,3 +117,22 @@
 "set ignorecase		" Do case insensitive matching
 "set incsearch		" Incremental search
 "set autowrite		" Automatically save before commands like :next and :make
+
+let lang = $LANG
+if strlen($LC_ALL) > 0
+  let lang = $LC_ALL
+elseif strlen($LC_CTYPE) > 0
+  let lang = $LC_CTYPE
+endif
+if match(lang, "ja_JP") > -1
+  set fileencoding=japan
+elseif match(lang, "zh_CN") > -1
+  set fileencoding=prc
+elseif match(lang, "zh_TW") > -1
+  set fileencoding=taiwan
+elseif match(lang, "zh_HK") > -1
+  set fileencoding=taiwan
+elseif match(lang, "ko_KR") > -1
+  set fileencoding=korea
+endif
+
--- vim-5.8.007/debian/runtime/gvimrc.old	Sat Aug  4 15:57:04 2001
+++ vim-5.8.007/debian/runtime/gvimrc	Sat Aug  4 15:59:36 2001
@@ -12,3 +12,26 @@
 " You can also specify a different font:
 " set guifont=-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1
 
+let lang = $LANG
+if strlen($LC_ALL) > 0
+  let lang = $LC_ALL
+elseif strlen($LC_CTYPE) > 0
+  let lang = $LC_CTYPE
+endif
+if match(lang, "ja_JP") > -1
+  set fileencoding=japan
+  set guifontset=-misc-fixed-medium-r-normal--14-*
+elseif match(lang, "zh_CN") > -1
+  set fileencoding=prc
+  set guifontset=8x16,-*-medium-r-normal--16-*
+elseif match(lang, "zh_TW") > -1
+  set fileencoding=taiwan
+  set guifontset=8x16,-*-medium-r-normal--16-*
+elseif match(lang, "zh_HK") > -1
+  set fileencoding=taiwan
+  set guifontset=8x16,-*-medium-r-normal--16-*
+elseif match(lang, "ko_KR") > -1
+  set fileencoding=korea
+  set guifontset=8x16,-daewoo-mincho-medium-r-normal--16-*
+endif
+



Information forwarded to debian-bugs-dist@lists.debian.org, Wichert Akkerman <wakkerma@debian.org>:
Bug#107856; Package vim. Full text and rfc822 format available.

Acknowledgement sent to Tomohiro KUBOTA <tkubota@riken.go.jp>:
Extra info received and forwarded to list. Copy sent to Wichert Akkerman <wakkerma@debian.org>. Full text and rfc822 format available.

Message #10 received at 107856@bugs.debian.org (full text, mbox):

From: Tomohiro KUBOTA <tkubota@riken.go.jp>
To: 107856@bugs.debian.org
Subject: Re: enable CJK handling ability
Date: Tue, 07 Aug 2001 10:39:22 +0900
Sorry, this bug is same to #107659.  I wrongly submitted this bug
because I thought #107659 was not accepted because bugs.debian.org
was down this Sunday.



Bug closed, send any further explanations to Tomohiro KUBOTA <tkubota@riken.go.jp> Request was from Wichert Akkerman <wichert@cistron.nl> to control@bugs.debian.org. Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Tue Feb 9 19:42:35 2010; Machine Name: busoni.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.