GNU bug report logs - #31472
tsort reporting false loop in input. unix2dos fixes the problem.

Previous Next

Package: coreutils;

Reported by: Ivan Ivanov <wankata <at> ivanovi.net>

Date: Wed, 16 May 2018 10:43:04 UTC

Severity: normal

Tags: notabug

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #20 received at 31472 <at> debbugs.gnu.org (full text, mbox):

From: Assaf Gordon <assafgordon <at> gmail.com>
To: 31472 <at> debbugs.gnu.org
Subject: Re: bug#31472: tsort reporting false loop in input. unix2dos fixes
 the problem.
Date: Mon, 29 Oct 2018 21:25:29 -0600
tags 31472 notabug
close 31472
stop

Hello,

On 2018-05-16 10:16 a.m., Bernhard Voelker wrote:
> This replaces "\n" by "\r\n", and of course changes the way tsort
> works. If your suspicion was that the file has Windows-style
> line-endings, then you would have had to use 'dos2unix'.

On 2018-05-17 2:54 a.m., Ivan Ivanov wrote:
> Beyond the CRLF problem, I found that the result, returned by tsort on
> the file with dos line endings had duplicates. So it is totally
> incorrect.

The conclusion of the thread is that dos/windows/mac line endings
will affect "tsort" (as expected - since tsort treats them as normal 
characters which change the sorted string).

As such, I'm closing this bug.
Discussion can continue by replying to this thread.

-assaf




This bug report was last modified 6 years and 290 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.