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

Full log


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 307 days ago.

Previous Next


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