History log of /external/toybox/toys/posix/wc.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
89a62bf2907412cb562d22c875736357e314c8c8 09-Jun-2014 Rob Landley <rob@landley.net> When locale is enabled, sprintf("%.123s", str) is counting characters, not bytes, so we can't globally enable locale without opening stack/heap smashing vulnerabilities. Make commands individually request setlocale() using TOYFLAGS instead.
/external/toybox/toys/posix/wc.c
662a267c9b52f256b027d0f176a846b1d973ab99 02-Jan-2013 Rob Landley <rob@landley.net> Have error_msg() and friends set TT.exitval to 1 if it's still 0, clean out other places that were setting it that no longer need to.
/external/toybox/toys/posix/wc.c
55970d0c2c0c78ebe386cf000129435476057817 01-Dec-2012 Rob Landley <rob@landley.net> Minor cleanup: unify two codepaths that do the same thing.
/external/toybox/toys/posix/wc.c
6e3876a5a6800e289d34b107bddf71f17c641694 01-Dec-2012 Rob Landley <rob@landley.net> Felix Janda pointed out that the r in mbrtowc() stands for "restartable" so it's already buffering the partial data we feed it, so rolling back most of the last commit to wc.
/external/toybox/toys/posix/wc.c
a9464f41539f4800744b4185c6a4d4c5e38eeadf 28-Nov-2012 Rob Landley <rob@landley.net> The previous wc -m didn't handle multibyte characters that crossed a buffer boundary, so take a guess at making that work. (I haven't got a test case for this. I also don't know how to handle invalid sequences so just don't count them.)
/external/toybox/toys/posix/wc.c
6cf0a115451d6d5ead94860f0731040dc2293db0 26-Nov-2012 Rob Landley <rob@landley.net> Cleanup i18n support (#ifdefectomy, move global init to process launch). Teach make.sh to emit "#define FLAG_x 0" for options inside disabled USE macros so we can unconditionally refer to them.
/external/toybox/toys/posix/wc.c
250e0055fe0596f0f13d6e30f0bfe086702f5a25 21-Nov-2012 Felix Janda <felix.janda@posteo.de> Make internalization support optional
/external/toybox/toys/posix/wc.c
7aa651a6a4496d848f86de9b1e6b3a003256a01f 14-Nov-2012 Rob Landley <rob@landley.net> Reindent to two spaces per level. Remove vi: directives that haven't worked right in years (ubuntu broke its' vim implementation). Remove trailing spaces. Add/remove blank lines. Re-wordwrap in places. Update documentation with new coding style.

The actual code should be the same afterward, this is just cosmetic refactoring.
/external/toybox/toys/posix/wc.c
abb8ca2455f3efd6f8f0eed78c54829bf0a9001e 08-Nov-2012 Felix Janda <felix.janda@posteo.de> wc -m only cares about counting characters. Attached is a try on implementing it and some test cases for it. The test cases are only for UTF-8 locales.
/external/toybox/toys/posix/wc.c
c0e56edaf256adb6c60c5a052525a1ffbb927901 08-Oct-2012 Rob Landley <rob@landley.net> New build infrastructure to generate FLAG_ macros and TT alias, #define FOR_commandname before #including toys.h to trigger it. Rename DEFINE_GLOBALS() to just GLOBALS() (because I could never remember if it was DECLARE_GLOBALS). Convert existing commands to use new infrastructure, and replace optflag constants with FLAG_ macros where appropriate.
/external/toybox/toys/posix/wc.c
7c8103e5d2e472a2f11f6d6c6660c2903167fb7b 06-Sep-2012 Rob Landley <rob@landley.net> Posix compliance: wc shouldn't have trailing spaces (breaks aboriginal's mkinitr
amfs script), when to print filenames was wrong, and it should have a "total" line when counting multiple arguments.
/external/toybox/toys/posix/wc.c
3a9241add947cb6d24b5de7a8927517426a78795 25-Aug-2012 Rob Landley <rob@landley.net> Move commands into "posix", "lsb", and "other" menus/directories.
/external/toybox/toys/posix/wc.c