Results 1 to 3 of 3

Thread: Wrong characters from compiler output

  1. #1
    Join Date
    Feb 2007
    Beans
    67

    Wrong characters from compiler output

    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?

  2. #2
    Join Date
    Feb 2007
    Beans
    67

    Re: Wrong characters from compiler output

    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
    Last edited by BillRebey; September 15th, 2009 at 02:00 PM.

  3. #3
    Join Date
    Jun 2008
    Beans
    2

    Smile Re: Wrong characters from compiler output

    Quote Originally Posted by BillRebey View Post
    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=""'.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •