[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: X input methods for utf-8?



I basically agree that there is a need for an application that 
while the current locale isn't an Unicode/UTF-8, but want to have
UTF-8 text from the current locale's text in different codeset and
also want to input and output with the UTF-8 text.

I also basically agree with you that for such an application, there should
be some level of code conversion, i.e., iconv(3C), with the current
programming interfaces.

My point was, if UTF-8/UTF-32 is the only multibyte/wide character
representaion that you need in an application, it will be much better
just to use xx_YY.UTF-8 locale of your choice instead of using xx_YY.ZZZ
and then do the iconv(3C) at the client side.

With regards,

Ienup


] Date: Fri, 26 Jan 2001 12:47:04 +0900
] From: Tomohiro KUBOTA <tkubota@xxxxxxxxxxx>
] Subject: Re: X input methods for utf-8?
] To: linux-utf8@xxxxxxxxxxxxxxxxxxxx
] MIME-version: 1.0
] Mail-Reply-To: tkubota@xxxxxxxxxxx
] 
] Hi,
] 
] At Thu, 25 Jan 2001 15:39:35 -0800 (PST),
] Ienup Sung <ienup.sung@xxxxxxxxxxx> wrote:
] 
] > I didn't see the original posting from Tomohiro KUBOTA but if possible,
] > I would like suggest that the iconv() code conversion be done in the
] > input method server/system side not each client so that there is no need to
] > change any of existing propoerly internationalized applications but
] > the only thing that you need to do is just run your application in
] > ja_JP.UTF-8 locale...
] 
] It also is yes.  Since XmbLookupString() has to return string in
] locale encoding (and all standard input/output are done using
] locale encoding), it must return string in UTF-8 in UTF-8 locale.
] 
] However, it must work under ja_JP.eucJP locale also.  To achieve
] this, clients has to use iconv() or wchar_t.  In this case, since
] VIM is already written to use Unicode, iconv() approach is much
] easier than wchar_t approach.
] 
] In short, both of XIM servers and clients need modification.
] -
] Linux-UTF8:   i18n of Linux on all levels
] Archive:      http://mail.nl.linux.org/lists/
-
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/lists/