9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] shift jis(ms-kanji) input in tcs
@ 1998-09-30  2:09 okamoto
  0 siblings, 0 replies; 2+ messages in thread
From: okamoto @ 1998-09-30  2:09 UTC (permalink / raw)


Tcs works wrong when ms-kanji(Shift-JIS) encoded strings
are read.  Any idea?  I've just glanced the code where
tries to convert Shift-JIS to JIS, and then to rune.  It's complicated
enough to me.  Then, I decided to ask the author whom I don't
know.

Kenji




^ permalink raw reply	[flat|nested] 2+ messages in thread

* [9fans] shift jis(ms-kanji) input in tcs
@ 1998-10-01  1:08 okamoto
  0 siblings, 0 replies; 2+ messages in thread
From: okamoto @ 1998-10-01  1:08 UTC (permalink / raw)


replying to my own previous querry...

In  alljis() and ms() functions in conv_jis.c, there are lines of

if((lastc&0x80) != (c&0x80)){  /* guard against latin1 in jis */
            .....
}.

When I eliminated those lines, Sjis input works wright.

Kenji




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-10-01  1:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-09-30  2:09 [9fans] shift jis(ms-kanji) input in tcs okamoto
1998-10-01  1:08 okamoto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).