> On Thu, May 02, 2013 at 03:22:21PM -0400, erik quanstrom wrote: > > can you give an example of xd outputting something that's not a rune?
if we're talking about xd, i'll suggest 'tcs -f 8859-1' again in which case: > Indeed, if the regexp is an ASCII representation matching xd outputs > there is not _this_ problem. But this is limited regexp, since one can > not use "character" ranges (it depends on the size); not '.'; these problems go away > because the conversion has to be done; this remains > because there is still the newline problem (that is added; not something in > the original data) (if functions have been added to not deal with the > newline, it is because the newline is a problem, and because regexp have a > more wider use than "text"). and this problem goes away. i imagine you'll still have problems with embedded NULs, but that's C strings for you... if you want a library function, use rregexec(2) and rregsub(2) with only the low byte of each Rune filled... (and yes, your data does quadruple itself) tristan -- All original matter is hereby placed immediately under the public domain.
