bug#54124: fmt inserts garbage in certain cases?

2022-02-23 Thread Paul Eggert
On 2/23/22 17:29, Pádraig Brady wrote: Given isspace('\n') returns true, then it makes some sense that isspace("Next Line") would return true, POSIX says that the application must insure that argument to isspace is either EOF or "a character representable as an unsigned char", and arguably s

bug#54124: fmt inserts garbage in certain cases?

2022-02-23 Thread Pádraig Brady
On 23/02/2022 17:55, Pádraig Brady wrote: I think isspace(x85) returning true on macOS is a bug, Bug is a bit of a strong word here. A digression into why 0x85 is being treated specially here. Note Cyrillic kha "х" is encoded in UTF-8 as: $ printf '\u0445' | od -tx1 000 d1 85 What I th

bug#46808: Man page of "tail"

2022-02-23 Thread Andreas Schwab
On Feb 27 2021, Reuti wrote: > I'm not a `groff` expert, but the sequence "\,some-text\/" appears a couple > of times. What effect does it have for the formatting as the "," and "/" are > not output? \, and \/ add some space as italic correction, see (groff) Ligatures and Kerning. -- Andreas

bug#46808: Man page of "tail"

2022-02-23 Thread Paul Eggert
On 2/26/21 23:32, Reuti wrote: I noticed some formatting issues in the man page of `tail`, and I wonder whether they are intentional as they occur at some places. They happen up to version 8.32: line: "-c, --bytes=[+]NUM" the "[" is in italic: \fB\-c\fR, \fB\-\-bytes\fR=\fI\,[\/\fR+]NUM line

bug#54124: fmt inserts garbage in certain cases?

2022-02-23 Thread Pádraig Brady
On 23/02/2022 10:58, JD wrote: Hi! I have fmt from coreutils 8.32.1 installed via MacPorts. If I run the following command: `echo х х х х х х х х х х х х х х х х х х х х х х х х х х | gfmt -sw 10` (which is just echoing 26 Cyrillic 'х' ('kha') letters), I get the following results: https://i

bug#54124: fmt inserts garbage in certain cases?

2022-02-23 Thread JD
Hi! I have fmt from coreutils 8.32.1 installed via MacPorts. If I run the following command: `echo х х х х х х х х х х х х х х х х х х х х х х х х х х | gfmt -sw 10` (which is just echoing 26 Cyrillic 'х' ('kha') letters), I get the following results: https://i.imgur.com/yRx7uuz.png (iTerm2)