🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.linux.x
Article #171

Re: How Motif and Japanese

#171
From: Kobayashi Masaoki
Date: Tue, 13 Feb 1996 00:00
30 lines
1954 bytes
> The setlocale() command does not want to recognize my locale of ja,
> ja_JP or ja_JP.eucJP.  When I link in X's version of Xsetlocale()
> instead of the standard setlocale()  X is able to set the locale without
> complaint.

I believe the Linux's X11 is compiled with -DX_LOCALE flag, so you 
have to compile your program with -DX_LOCALE.  Makefiles created
by imake is a good example for your Makefile.

> When I try to explicitly call XOpenIM() I get an error.  I do not know
> what or where various input methods are called and so have not set
> XSetLocaleModifiers to anything.  I am currently running cannaserver as
> my input Japanese Input deamon.

What input method do you use?  Cannaserver cannot respond directly 
to XIM.  I assume you're using kinput2.

  Motif App. <---> kinput2 <---> canna
              (1)           (2)

You wrote you can use vi with Japanese, so the problem is the
connection (1) above.  The possible problem is that you have to
set XMODIFIERS variable as '@im=kinput2'.  You have to call just
setlocale() (with -DX_LOCALE) and XtSetLanguageProc()
subsequently with right LANG (or LC_ALL) and XMODIFIERS, so that
you can input Japanese with your Motif application.

--
Masaoki Kobayashi
Hewlett-Packard Japan, Ltd.
Technical Details
Message-ID: <vr6vilchy63.fsf@akebono.tky.hp.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <311F63CD.4B562A0B@empress.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1103af,7ac0f6da1ecff7f7
X-Google-Attributes: gid1103af,public
X-Google-Thread: 10684a,7ac0f6da1ecff7f7
X-Google-Attributes: gid10684a,public
X-Google-Thread: f4bda,7ac0f6da1ecff7f7
X-Google-Attributes: gidf4bda,public
From: masaoki@tky.hp.com (Kobayashi Masaoki)
Subject: Re: How Motif and Japanese
Date: 1996/02/13
Message-ID: <vr6vilchy63.fsf@akebono.tky.hp.com>
X-Deja-AN: 139137731
distribution: inet
sender: masaoki@akebono.tky.hp.com
references: <311F63CD.4B562A0B@empress.com>
organization: HSTD IC Test Eng., Hewlett-Packard Japan
newsgroups: comp.os.linux.x,comp.os.linux.misc,fj.os.linux