GNU bug report logs - #65408
nl: -d doesn't use ':' as second char if a single non-ASCII char is provided

Previous Next

Package: coreutils;

Reported by: Daniel Hofstetter <dhofstet <at> gmail.com>

Date: Sun, 20 Aug 2023 12:37:02 UTC

Severity: normal

To reply to this bug, email your comments to 65408 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#65408; Package coreutils. (Sun, 20 Aug 2023 12:37:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Daniel Hofstetter <dhofstet <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Sun, 20 Aug 2023 12:37:02 GMT) Full text and rfc822 format available.

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

From: Daniel Hofstetter <dhofstet <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: nl: -d doesn't use ':' as second char if a single non-ASCII char is
 provided
Date: Sun, 20 Aug 2023 14:36:07 +0200
Hi,

According to the documentation, the section delimiter consists of at
least two characters, and if you omit the second character when using
-d/--section-delimiter, the second character is implied to be ':'.
However, this doesn't seem to be the case in nl 9.3 if I provide a
single non-ASCII char:

$ printf "a\nä:\nb" | nl -dä
    1  a
    2  ä:
    3  b

If I add the ':' manually, I get the expected output:

$ printf "a\nä:\nb" | nl -dä:
    1  a

      b

Regards,
Daniel




This bug report was last modified 1 year and 77 days ago.

Previous Next


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