NetBSD Problem Report #44497

From www@NetBSD.org  Mon Jan 31 13:04:49 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 0CADD63B874
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 31 Jan 2011 13:04:49 +0000 (UTC)
Message-Id: <20110131130448.4413763B873@www.NetBSD.org>
Date: Mon, 31 Jan 2011 13:04:48 +0000 (UTC)
From: pooka@iki.fi
Reply-To: pooka@iki.fi
To: gnats-bugs@NetBSD.org
Subject: atf-report does not handle ^M
X-Send-Pr-Version: www-1.0

>Number:         44497
>Category:       bin
>Synopsis:       atf-report does not handle ^M
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 31 13:05:00 +0000 2011
>Originator:     Antti Kantee
>Release:        
>Organization:
>Environment:
>Description:
atf-report parser fails with dos-style newlines:

> atf-report < root.tests.log 
terminate called after throwing an instance of 'atf::parser::parse_errors'
'; expected eof, `;' or new line
2: Unexpected token `<<NEWLINE>>'; expected `:'
3: Unexpected token `Automated'; expected eof, `;' or new line
'; expected eof, `;' or new line
5: Unexpected token `Fri'; expected eof, `;' or new line
'; expected eof, `;' or new line
[....]
Abort (core dumped)

>How-To-Repeat:
Receive a tests.log with dos-style newlines, scratch head
(especially since less(1) filters the ^M's out).  Finally
use vis(1) and locate the problem:

Content-Type: application/X-atf-tps; version="2"\^M
\^M
....
>Fix:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.