setting TERM can prevent regression tests from working
test/Makefile
does this a lot:
$(REPOSURGEON) "... write -" | whatever
I was seeing a lot of failures, and apparently invisibly changed lines from diff. I eventually boiled the issue down to this:
[iay@srv-c701 reposurgeon]$ echo $TERM
xterm
[iay@srv-c701 reposurgeon]$ reposurgeon "verbose 0" | od -c
0000000 033 [ ? 1 0 3 4 h
That seems to be an ANSI terminal sequence being issued by reposurgeon even though we're in batch mode. I found this reference:
http://invisible-island.net/xterm/ctlseqs/ctlseqs.html
... which says this is "Interpret "meta" key, sets eighth bit. (enables the eightBitInput resource)"
Obviously it's undesirable for reposurgeon to do this if it's possible to generate output directly to stdout. Ideally, I'd be able to tell you where the ANSI sequence is coming from so that it could be suppressed, but I wasn't able to do that. My guess is that it's deep in some underlying library.
What I did find is that setting TERM to nothing in the test/Makefile suppresses the ANSI sequence, and I mailed a patch to this effect on 17-June, which probably got lost somewhere.
I can resend that patch, but I've also pushed a topic branch called ansi-term
to iay/reposurgeon
with the same change based on current head.