patch for /usr/src/usr.bin/fmt/ (not 8 bit clean) for German & French

Christian Weisgerber naddy at mips.inka.de
Tue Nov 12 20:17:52 UTC 2013


Julian H. Stacey:

> 	I don't know about ISO 8859-1 and UTF-8, (I dislike & avoid
> 	national char set stuff as much as possible), but I want

That is your problem right there.

> 	to be able to edit files that simultaneously contain eg all
> 	of English German & French etc, so setting some var to eg
> 	just German would be inappropriate.  8 bit clean would be ideal,
> 	next best would be my patches I suppose.

You MUST define a character set for this.  "8-bit clean" is meaningless
for a tool that deals with runs of characters.  Without a defined
character set, you have no idea what those bytes mean.  Is 0x90 a
printable character?  Is it a control character?  Is it part of a
multibyte character?

And setting, for example, LC_CTYPE=de_DE.ISO8859-1 does in no way
limit you to German.  For LC_CTYPE purposes, the language/country
part of the locale specification isn't used.

This is definitely a PEBKAC.

-- 
Christian "naddy" Weisgerber                          naddy at mips.inka.de


More information about the freebsd-hackers mailing list