Tuesday, February 26, 2008

Favorite new trick.

Dump all the macros defined by the compiler:

echo "" | gcc -E -dM -

Friday, February 22, 2008

xterm, gcc, and colorization

I've found gcc giving strange output when colorizing it's errors on remote machines. Usually there is a carat-a followed by some garbage. It makes it very hard to read the output when it isn't there. Turns out it is a symptom of xterm not supporting unicode. The simple solution is:


setenv LANG en_US


or


export LANG=en_US


depending on the shell.