open suse 12.2 gcc g++ wired characters

hello gurus,

i have installed open suse 12.2, when compiling simple c programs error shown as wired chars

gcc test2.c
test2.c: In function âmainâ:
test2.c:4:1: error: expected â;â before â}â token
online@linux-6c88:~>

my locale setting
online@linux-6c88:~> locale
LANG=en_US.UTF-8
LC_CTYPE=“en_US.UTF-8”
LC_NUMERIC=“en_US.UTF-8”
LC_TIME=“en_US.UTF-8”
LC_COLLATE=“en_US.UTF-8”
LC_MONETARY=“en_US.UTF-8”
LC_MESSAGES=en_US
LC_PAPER=“en_US.UTF-8”
LC_NAME=“en_US.UTF-8”
LC_ADDRESS=“en_US.UTF-8”
LC_TELEPHONE=“en_US.UTF-8”
LC_MEASUREMENT=“en_US.UTF-8”
LC_IDENTIFICATION=“en_US.UTF-8”
LC_ALL=
plz help me

thanks for advance

On 02/22/2012 07:16 AM, bkvenkat wrote:
>
> i have installed open suse 12.2

you are (i guess) either asking for help or reporting a bug…

be advised openSUSE 12.2 is pre-beta software and if you are a bona
fide software tester you just accidentally got into the wrong forum, you
need to be here (in the Pre-Release/Beta forum) with all the other
software testers: http://tinyurl.com/2du7r4s

if you are not a software tester you have downloaded the wrong version,
go here http://software.opensuse.org/

and, please tell us where and how you were directed to openSUSE 12.1
Milestone 1??


DD http://tinyurl.com/DD-Caveat
What does DistroWatch write about YOU?: http://tinyurl.com/SUSEonDW

Please use CODE tags around your posted computer text when you find out where to ask this (not here as explained above): http://forums.opensuse.org/english/information-new-users/advanced-how-faq-read-only/451526-posting-code-tags-guide.html

The OP probably means ‘weird’ not wired

Yes, and it might be that his file* test2.c* (of which he does not show anything) is not in UTF-8, but he should go to Pre-release/Beta anyway.

Am 22.02.2012 07:16, schrieb bkvenkat:
>
> hello gurus,
>
> i have installed open suse 12.2, when compiling simple c programs
> error shown as wired chars
>
>
> gcc test2.c
> test2.c: In function âmainâ:
> test2.c:4:1: error: expected â;â before â}â token
> online@linux-6c88:~>
>
>

The universal character names for letters and digits outside of the
basic source character set are allowed in C++ and at the C99 language level.

from http://publib.boulder.ibm.com/infocenter

not sure if gcc supports it (I guess yes, never tried).
try the switch


gcc -std=c99 test2.c

but I would say best to avoid such non ascii characters in function names.


PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.8.0 |
nVidia ION | 3GB Ram

Am 22.02.2012 13:06, schrieb Martin Helm:
>> test2.c: In function âmainâ:
I am blind I read this as the function name while it is just a weird
output for ‘main’.
Ignore my previous comment.

Is that in a terminal emulation like xterm/konsole/gnome-terminal or a
virtual console or ssh?
Your console font seems to be wrong.


PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.8.0 |
nVidia ION | 3GB Ram

Hai

Solved

LC_ALL=“C”
Thanks