Re: [PATCH] Avoid broken Solaris tr

2013-10-28 Thread Ben Walton
On Tue, Jun 18, 2013 at 11:31 PM, Junio C Hamano wrote: Sorry for the very slow reply. This got lost in my inbox and I forgot about it. > Ben Walton writes: > >> Solaris' tr (both /usr/bin/ and /usr/xpg4/bin) fail to handle the case >> where the first argument is a multi-character set and the s

Re: [PATCH] Avoid broken Solaris tr

2013-06-18 Thread Junio C Hamano
Ben Walton writes: > Solaris' tr (both /usr/bin/ and /usr/xpg4/bin) fail to handle the case > where the first argument is a multi-character set and the second is a > single null character. Almost all the tr invocations look like converting LF to NUL, except for two that squash a colon ':', HT an

[PATCH] Avoid broken Solaris tr

2013-06-18 Thread Ben Walton
Solaris' tr (both /usr/bin/ and /usr/xpg4/bin) fail to handle the case where the first argument is a multi-character set and the second is a single null character. Use perl to perform these substitutions instead. Now that we're using perl for the transliteration, we might as well replace the sed in