On Thu, 11 Dec 2014, camden lindsay wrote:
> If i'm reading that thread correctly, this is a 'feature' rather
> than a 'bug'.. From that discussion:
> " This is another side effect of using a multibyte locale. As long
> as there are no NUL bytes in your input, you can work around the
> issue by running grep in the C locale:
>
> LC_ALL=C grep ...
> "
> "Yes, the C locale has the nice effect of EVERY byte being a valid single
> byte character, leaving only NUL bytes and a non-empty file not ending
> in newline as the only reasons for a file to be marked binary.
> "
i won't argue that it's a feature, only that it has the potential to
catch the occasional person unawares. :-P
> I wonder if this is something that the devs would consider
> patching... i'm not sure what the proper way to declare a variable
> would be (or if they woudl want to do it)... or if it would be
> better to use -a in that grep line.
the only gotcha i've run across is a single Makefile being
interpreted as ISO-8859, so just fixing *that* call to "grep" would be
sufficient.
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users