GNU bug report logs - #29606
Command 'fold' dangerous with utf-8 input

Previous Next

Package: coreutils;

Reported by: Mark Roberts <mroberts <at> rapid-arts-movement.de>

Date: Thu, 7 Dec 2017 16:27:02 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Mark Roberts <mroberts <at> rapid-arts-movement.de>
To: Assaf Gordon <assafgordon <at> gmail.com>
Cc: 29606-done <at> debbugs.gnu.org
Subject: bug#29606: Command 'fold' dangerous with utf-8 input
Date: Sat, 9 Dec 2017 14:22:41 +0100 (CET)
Dear Assaf,

> I agree that once multibyte support is added to fold(1), the man pages,
> the help screen and texi manual must be updated to clearly
> indicate the "-b/--bytes" only applies to \b \t \r and never to
> multibyte characters.

My suggestion for man-page:
==========================

Old:
---

-b, --bytes
              count bytes rather than columns


New:
---

-b, --bytes
              don't treat \b, \t, and \r specially


My suggestions for info-page:
============================

Old:
---

`-b'
`--bytes'
     Count bytes rather than columns, so that tabs, backspaces, and
     carriage returns are each counted as taking up one column, just
     like other characters.


New:
---

`-b'
`--bytes'
     Don't treat \b, \t, and \r specially. Instead tabs, backspaces, and
     carriage returns are each counted as taking up one column, just
     like other characters.


My suggestion for --help-output
===============================

Old:
---

  -b, --bytes         count bytes rather than columns


New:
---

  -b, --bytes         don't treat \b, \t, and \r specially



Hope this helps.
Mark




This bug report was last modified 7 years and 169 days ago.

Previous Next


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