Bug 17077

Summary: write() error
Product: Base System Reporter: Vadym V. Chepkov <vvc>
Component: binAssignee: yokota <yokota>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-CURRENT   
Hardware: Any   
OS: Any   

Description Vadym V. Chepkov 2000-02-29 20:00:00 UTC
	Garbage output from standard tools cat/head/tail/...

How-To-Repeat: 
	When string contain TAB symbol (\t) and all string doesn't feet to 	one row of screen, the rest of string's symbols wrap on the same row. 
	Make file with one long string with TAB symbol and do 'cat this-file'
	This affect on CURRENT and STABLE branches
Comment 1 dhagan 2000-04-06 02:39:13 UTC
I couldn't recreate this on a 3.4-RELEASE system.  Do you have a test file
that demo's this?

Daniel
Comment 2 hoek freebsd_committer freebsd_triage 2000-05-16 06:10:45 UTC
State Changed
From-To: open->closed

Sorry, for this type of bug it's necessary to send a sample file 
showing the problem or we simply don't know where to start (I couldn't 
duplicate the problem). 

The write() syscall certainly works correctly and is not what caused 
you to see long lines that wrapped as-if they only had a r terminating 
character and no n terminator. 

Comment 3 Tim Vanderhoek 2000-05-17 23:49:37 UTC
----- Forwarded message from "Vadym V. Chepkov" <vvc@kharkiv.net> -----

Date: Thu, 18 May 2000 00:36:35 +0300 (EEST)
From: "Vadym V. Chepkov" <vvc@kharkiv.net>
To: hoek@FreeBSD.org
Cc: freebsd-bugs@FreeBSD.org
Subject: Re:  Re: bin/17077
X-Mailer: Pine

Hello!

>Sorry, for this type of bug it's necessary to send a sample file
>showing the problem or we simply don't know where to start (I couldn't
>duplicate the problem).
>The write() syscall certainly works correctly and is not what caused
>you to see long lines that wrapped as-if they only had a \r terminating
>character and no \n terminator.

I already send example in send-pr report.
There is another example.txt in attachment. 

You could duplicate problem just exec command 'cat example.txt' and 'more
example.txt' and see difference

I also send you ALL my `env` in env.txt if it will be usefull.

Kind regards,
Vadim V. Chepkov

PWD=/usr/home/vvc
PAGER=less
HOSTNAME=uran.kharkiv.net
BLOCKSIZE=K
USER=vvc
MACHTYPE=i386-pc-freebsd3.1
MAIL=/var/mail/vvc
EDITOR=vi
SSH_CLIENT=194.44.156.99 1006 22
LOGNAME=vvc
SHLVL=1
SHELL=/usr/local/bin/bash
HOSTTYPE=i386
OSTYPE=freebsd3.1
TERM=cons25
HOME=/usr/home/vvc
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/home/vvc/bin
SSH_TTY=/dev/ttyp1
_=/usr/bin/env

hub.freebsd.org!freebsd.org!owner-freebsd-questions	LOCAL!PROGRAMM	1797	00:14:49 18.05.00


----- End forwarded message -----


-- 
Signature withheld by request of author.
Comment 4 Tim Vanderhoek 2000-05-17 23:52:31 UTC
On Thu, May 18, 2000 at 12:36:35AM +0300, Vadym V. Chepkov wrote:
> 
> I already send example in send-pr report.
> There is another example.txt in attachment. 

Sorry; it must have gotten lost.

However, the example you give me here does indeed show the problem.

I'll look into it.


-- 
Signature withheld by request of author.
Comment 5 hoek freebsd_committer freebsd_triage 2000-05-20 08:31:20 UTC
State Changed
From-To: closed->open

Submitter has submitted a sample file demonstrating problem. 


Comment 6 hoek freebsd_committer freebsd_triage 2000-05-20 08:31:20 UTC
Responsible Changed
From-To: freebsd-bugs->yokota

My first guess says that this is a syscons problem. 

If you think I'm wrong, say so, and I'll re-assign the PR as per 
my second guess. 
Comment 7 yokota freebsd_committer freebsd_triage 2001-07-20 14:57:54 UTC
State Changed
From-To: open->closed

Fixed by sctermvar.h rev 1.2 and 1.1.2.1 by ache.