zsh-workers
 help / color / mirror / code / Atom feed
* padding in vt100 causes 'make check' to hang on FreeBSD
@ 2013-12-16 15:36 Jun T.
  2013-12-16 16:33 ` Bart Schaefer
  2013-12-16 18:29 ` Axel Beckert
  0 siblings, 2 replies; 7+ messages in thread
From: Jun T. @ 2013-12-16 15:36 UTC (permalink / raw)
  To: zsh-workers

On FreeBSD, 'make check' hangs at X02zlevi.ztst (and other tests which use
comptest). The hang is at line 96 of comptest (in comptesteval()):

95:   zpty -w zsh ". $tmp"
96:   zpty -r -m zsh log_eval "*<PROMPT>*" || {

The actual problem is in the contents of the file $tmp (i.e., "$@"
of comptesteval()), in particular line 37:

37: TERM=vt100

Various capabilities of vt100 contain the ancient "padding", and FreeBSD's
slave side tputs() actually sends 'null bytes' as paddings before sending
the <PROMPT>. But the zsh on the master side just considers the 'null byte'
as the end of C-string, and the line 96 never returns.

If I change the line 37 to

37: TERM=xterm

then 'make check' doesn't hang and ends without failure (xterm doesn't
contain any padding, of course).

Is it OK to replace vt100 with xterm?
I guess xterm is 'almost' as portable as vt100, but not 100% sure.


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

end of thread, other threads:[~2013-12-17  6:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-16 15:36 padding in vt100 causes 'make check' to hang on FreeBSD Jun T.
2013-12-16 16:33 ` Bart Schaefer
2013-12-16 17:13   ` Jun T.
2013-12-16 18:21     ` Bart Schaefer
2013-12-17  5:29       ` J. Takimoto
2013-12-17  6:06         ` Bart Schaefer
2013-12-16 18:29 ` Axel Beckert

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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).