Up to [local] / src / usr.bin / fmt
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: OPENBSD_6_0_BASE
Revision 1.36 / (download) - annotate - [select for diffs], Thu Jan 7 18:02:43 2016 UTC (8 years, 5 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE,
OPENBSD_6_0,
OPENBSD_5_9_BASE,
OPENBSD_5_9
Changes since 1.35: +22 -6 lines
Diff to previous 1.35 (colored)
UTF-8 support for fmt -c. This implies two small changes in behaviour: 1. Let fmt -c replace invalid bytes with ASCII question marks just like when called without -c. 2. On lines to be centered, replace each tab with a single blank, simply because there is no useful way to define the meaning of a tab on such a line. Having the width of a tab depend on what is to the right of it would be completely crazy (and complicate the code a lot), and otherwise, tabs on adjacent lines of different length wouldn't align anyway. OK millert@