PDA

View Full Version : [ubuntu] Wrong characters from compiler output



BillRebey
February 21st, 2009, 05:40 PM
I couldn't find a forum that seemed like the right fit for this question, please correct me if this post should be elsewhere...

I have two Ubuntu boxes that I'm compiling on (with g++ via SSH from a WinNT/Cygwin box).

The compiler output produces garbled characters instead of punctuation. For instance:

invalid conversion from ‘void* (*)()’ to ‘void*’

(The actual garbled characters appear different in my xterm and in my editor than they do above on this Web page, but their position is the same).

Anyone have any idea what's going on here?

BillRebey
September 15th, 2009, 01:55 PM
In case it helps anyone else, I've found the solution to this problem. Unset the LANG environment variable and the characters will come out correctly. In csh:

unsetenv LANG

in4tunio
May 26th, 2010, 10:59 AM
In case it helps anyone else, I've found the solution to this problem. Unset the LANG environment variable and the characters will come out correctly. In csh:

unsetenv LANG

Thanks, this worked for me. On bash, I did 'export LANG=""'.