On Tue, 15 May 2001, Markus Kuhn wrote:
> Jungshik Shin wrote on 2001-05-15 16:41 UTC:
> > On Tue, 15 May 2001, Markus Kuhn wrote:
> > > > Markus Kuhn writes:
> > > > > I'd like to have in some standard tool a function that looks at
> > > > > nl_langinfo(CODESET) and then sends out the corresponding ISO 2022
> > > > > sequence to make sure the terminal knaows about the encoding of the
> > > > > current locale.
> > However, EUC-JP, EUC-CN, and EUC-KR are as widely used as
> > ISO-8859-x and there ARE ISO-2022 ESC seq. to activate these encodings.
>
> These would obviously be added then of course, and if you could post the
> ESC sequences or ISO-IR numbers of these encodings, then they will even
> be in the first release.
I thought you knew because you listed
<http://www.itscj.ipsj.or.jp/ISO-IR/> among your references. Anyway,
here's what you need:
EUC-KR : "\033(B\033$)C"
G0: US-ASCII, G1: KS C 5601-1987 (now KS X 1001)
EUC-CN (GB 2312-80) : "\033(B\033$)A"
G0: US-ASCII, G1: GB 2312-80
In case of EUC-JP, I may have been wrong. I don't see a way to take
care of JIS X 0212.
Jungshik Shin
-
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/lists/