log toys/posix/wc.c @ 726:6617899e55f8

age author description
Sat, 01 Dec 2012 11:03:52 -0600 Rob Landley Minor cleanup: unify two codepaths that do the same thing.
Sat, 01 Dec 2012 00:42:01 -0600 Rob Landley 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.
Wed, 28 Nov 2012 03:12:02 -0600 Rob Landley 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.)
Mon, 26 Nov 2012 14:14:29 -0600 Rob Landley 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.
Wed, 21 Nov 2012 20:38:29 +0100 Felix Janda Make internalization support optional
Tue, 13 Nov 2012 17:14:08 -0600 Rob Landley 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.
Thu, 08 Nov 2012 11:19:07 -0600 Felix Janda 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.
Mon, 08 Oct 2012 00:02:30 -0500 Rob Landley 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.
Thu, 06 Sep 2012 03:10:18 -0500 Rob Landley Posix compliance: wc shouldn't have trailing spaces (breaks aboriginal's mkinitr
Sat, 25 Aug 2012 14:25:22 -0500 Rob Landley Move commands into "posix", "lsb", and "other" menus/directories. base toys/wc.c@3c848b8dff2c