Results 1 to 8 of 8

Thread: open suse 12.2 gcc g++ wired characters

  1. #1

    Default 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

  2. #2
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: open suse 12.2 gcc g++ wired characters

    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

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,721

    Default Re: open suse 12.2 gcc g++ wired characters

    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/i...ags-guide.html
    Henk van Velden

  4. #4
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,719
    Blog Entries
    20

    Default Re: open suse 12.2 gcc g++ weird characters

    The OP probably means 'weird' not wired
    Leap 15_KDE
    My Articles Was I any help? If yes: Click the star below

  5. #5
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,721

    Default Re: open suse 12.2 gcc g++ weird characters

    Quote Originally Posted by caf4926 View Post
    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.
    Henk van Velden

  6. #6
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: open suse 12.2 gcc g++ wired characters

    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
    Code:
    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

  7. #7
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: open suse 12.2 gcc g++ wired characters

    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

  8. #8

    Default Re: open suse 12.2 gcc g++ wired characters

    Hai

    Solved

    LC_ALL="C"
    Thanks


    Quote Originally Posted by martin_helm View Post
    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

Posting Permissions

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