Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem displaying utf-8 under vim 6.3 on AIX

53 views
Skip to first unread message

Hemant Shah

unread,
Oct 26, 2004, 1:05:04 PM10/26/04
to
Folks,

I have files that have utf-8 chracters in it (english, spanish and japanese)
I want to view and edit the files using gvim on AIX 5.1 and Linux.

I am able to view/edit files on a vim that came with RedHat using kinput2.

I am having problem on AIX 5.1 system. I downloaded vim 6.3 from vim.org
along with extra and lang files.

I built vim on AIX with huge feature:

export CC=xlc
./configure --enable-gui --with-features=huge --enable-fontset
--enable-multibyte --enable-xim

My default locale is en_US. When I start gvim it starts with some big font
that does not display anything. I have to execute "set gfn=9x15" to see
the text. How do I find out which font it is using by default?

I changed my LANG variable to JA_JP.UTF-8. I have installed JA_JP.UTF-8
locale on the system.

When I try to start gvim, it takes long time to startup and displays
following messages:

$ export LANG=JA_JP.UTF-8

$ locale
LANG=JA_JP.UTF-8
LC_COLLATE="JA_JP.UTF-8"
LC_CTYPE="JA_JP.UTF-8"
LC_MONETARY="JA_JP.UTF-8"
LC_NUMERIC="JA_JP.UTF-8"
LC_TIME="JA_JP.UTF-8"
LC_MESSAGES="JA_JP.UTF-8"
LC_ALL=

$ bin/gvim /g2/gblcode/cob/gbl/adb/sent/0/23679
警å: Missing charsets in String to FontSet conversion
警å: Cannot convert string "-dt-interface system-medium-r-normal-m*-*-*-*-*-*-*-*-*" to type FontSet

警å: Missing charsets in String to FontSet conversion
警å: Unable to load any usable fontset
警å: 2054-901
�å: FONTLIST_DEFAULT_TAG_STRING
�����¹: XmRendition
2054-914 ����失��������������読込���������ã


The window is displayed after 5 minutes and I am not sure which font it
is using but all I see is a square block cursor. The menus are not diplayed
either.

I even tried to set my LANG to EN_US.UTF-8 and got the same result.

I ran

xlsfonts | grep "dt-interface system-medium-r-normal-m"

command and found atleast 40 fonts.

I have installed following locales on my system:

$ locale -a
C
POSIX
en_US
en_US.8859-15
en_US.ISO8859-1
ko_KR
ko_KR.IBM-eucKR
HI_IN
HI_IN.UTF-8
ZH_CN
ZH_CN.UTF-8
zh_TW
zh_CN.IBM-eucCN
zh_TW.IBM-eucTW
Zh_CN.GB18030
GB18030.imcfg
zh_CN
Zh_CN
Zh_CN.imcfg
Zh_CN.GB18030.imcfg
ES_ES
ES_ES.UTF-8
ES_ES.UTF-8@euro
ES_ES@euro
JA_JP
JA_JP.UTF-8
EN_US
EN_US.UTF-8

What do I need to do on AIX so that I can use gvim to display UTF-8
characters?


--
Hemant Shah /"\ ASCII ribbon campaign
E-mail: NoJunkM...@xnet.com \ / ---------------------
X against HTML mail
TO REPLY, REMOVE NoJunkMail / \ and postings
FROM MY E-MAIL ADDRESS.
-----------------[DO NOT SEND UNSOLICITED BULK E-MAIL]------------------
I haven't lost my mind, Above opinions are mine only.
it's backed up on tape somewhere. Others can have their own.

0 new messages