Unix Technical Forum

Problem displaying utf-8 under vim 6.3 on AIX

This is a discussion on Problem displaying utf-8 under vim 6.3 on AIX within the AIX Operating System forums, part of the Unix Operating Systems category; --> Folks, I have files that have utf-8 chracters in it (english, spanish and japanese) I want to view and ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 03:32 AM
Hemant Shah
 
Posts: n/a
Default Problem displaying utf-8 under vim 6.3 on AIX

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: NoJunkMailshah@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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:50 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com