bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug in tr: assertion failed


From: Jim Meyering
Subject: Re: bug in tr: assertion failed
Date: Thu, 03 May 2007 15:19:32 +0200

"Blohm, Guntram (I/FP-831, extern)" <address@hidden> wrote:
> gandalf$ tr  -c '\012[a-z][A-Z][0-9].' '[_*256]'
> tr: tr.c:1819: main: Assertion `get_next (s2, ((void *)0)) == -1 || 
> truncate_set1' failed.
> Aborted

Thank you for reporting that!
The fix appears to be simply to remove that assertion, since
there's nothing wrong with having string2 longer than string1.
This will be fixed upstream today, and will eventually appear
in coreutils-6.10.

In the mean time, you can work around it like this:

  tr  -c '\012[a-z][A-Z][0-9].' '[_*]'




reply via email to

[Prev in Thread] Current Thread [Next in Thread]