Strange characters present in gcc compilation output on console

When I create C code using gcc, the Makefile, as shown below in the Ubuntu 10.04-x32 bit system, is under the bash shell. The gcc output message contains several unwanted characters in the output message (see below: â).

test@dualboot-desktop:~/test/opencv$ make
cc -L/usr/local/lib -I/usr/local/include/opencv2 -lopencv_imgproc -lopencv_highgui -lopencv_video -lopencv_calib3d test1.c -o test_opencv
test1.c: In function âmainâ:
test1.c:13: error: too few arguments to function âcvLoadImageâ
test1.c:21: error: expected â;â before âcvMoveWindowâ
make: *** [test_opencv] Error 1

They sometimes mix up the actual message and become annoying.

What is the reason for this? Something is wrong in my ubunti user settings

How can i fix this?

+5
source share
1 answer

If you set LC_LANG to something that ends in UTF8, but your terminal has problems (or is not configured to handle) UTF8, then you have run into difficulties.

, LC_LANG = en_GB.

+3

All Articles