So, to make texi2dvi bsdsed compatible, it would need to - detect the charset of the input file - set LC_CTYPE and LANG accordingly when calling sed.
Thanks for the report, but that is not feasible -- there is no way to detect charsets reliably, and there is no reliable way to know the appropriate LC_CTYPE/LANG/etc., either. You're talking about any use of sed in that circumstance (locale/file encoding mismatch). It makes no sense to try to work around such fundamental breakage within a particular script. What does make sense is not to use Apple's sed if it is that stupid. karl