Peter da Silva wrote: > On Aug 2, 2007, at 9:29, Jarkko Hietaniemi wrote: >>> a "stdcmd" stream that let you read a *genuinely* unlimited stream of >>> null-terminated parameters. In the absence of that, handcraft it > >> Your C is showing. > > It's UNIX, there's so many places where the requirement for a null > terminator is exposed in file names and other parameters that there's > no point targeting this one. Plus, that much compatibility with "xargs > -0" would be useful.
I thought we were Fixing things and not just dinking with them. >> Please have the length of strings upfront. > > Length encoding isn't self-syncing, and it also limits the length of > individual parameters by the size of the length. Which would sure as > anything bring us back to this discussion eventually. > > Use UTF-8 encoding with an alternate null mapping. Java lover, are you? :-) I was about to suggest BER encoding but somebody beat me to it. > >