[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Process output truncation when using UTF-8
From: |
Kenichi Handa |
Subject: |
Re: Process output truncation when using UTF-8 |
Date: |
Fri, 20 Jun 2003 13:20:48 +0900 (JST) |
User-agent: |
SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.2.92 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) |
In article <E19TCNP-0002oB-6h@fencepost.gnu.org>, Richard Stallman
<rms@gnu.org> writes:
> The encoding routine correctly produces CR LF, but somehow
> CR is converted to LF (perhaps by pty because the following
> test works correctly).
> Is it the pty and tty mechanism that does the conversion, perhaps?
Perhaps. I found this code in child_setup_tty (in
sysdep.c).
#if 0 /* This causes bugs in (for instance) telnet to certain sites. */
s.main.c_iflag &= ~ICRNL; /* Disable map of CR to NL on input */
#ifdef INLCR /* Just being cautious, since I can't check how
widespread INLCR is--rms. */
s.main.c_iflag &= ~INLCR; /* Disable map of NL to CR on input */
#endif
#endif
I tried to change the first line above to "#if 1". The
newly build emacs doesn't do CR->LF conversion, thus works
well with the test case (utf-8-bug.el).
---
Ken'ichi HANDA
handa@m17n.org