On Sun, Feb 12, 2017 at 10:21:11PM -0800, Eric Pruitt wrote: > Unfortunately I do not have access to an OpenBSD machine to verify > whether or not its fmt does the correct thing.
By the way, if you try your example in openbsd take in care obsd printf won't recognize \u00a0. Use '\xc2\xa0' instead. I was trying your example in a linux machine obtaining your same results. But I did it mostly because I was curious about the other difference: the GNU version inserts the new line 'in' the number assigned by -w, giving you in this case a 19 wide line as result. The obsd version breaks the line in the following character giving you a 20 chars wide line. Back to the original topic. What made me hesitate if 'feature' or 'bug' was the man page. The following two paragraphs made me think converting all spaces to ascii could be desired as a practical solution: fmt is meant to format mail messages prior to sending, but may also be useful for other simple tasks... The program was designed to be simple and fast – for more complex operations, the standard text processors are likely to be more appropriate.