Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Funny character encoding/translation

I suspect that what you are seeing are VT100 terminal codes for bolding the keyword. (Afraid I have given away my age there ;-).

On Thu, Jun 18, 2009 at 10:31 AM, Beth Tibbitts <tibbitts@xxxxxxxxxx> wrote:

Speaking of characters...
My CDT, multiple versions and >1 Mac Book Pro, have always had this problem:

e.g. an error in the CDT build console looks like this:
../src/zzzzcpp.cpp:15: error: ‚√Ñ√≤printf‚√Ñ√¥ was not declared in this scope

Here in email the chars are even crazier than they look in the Eclipse console. So i have attached a small screenshot.
(See attached file: cdt-chars.png)
I know of other Eclipse/CDT installations on Macs and they do not have this problem.
Do you know what I've got set incorrectly?
It's not in the eclipse installation because all my eclipse installs have this problem.
Usually it doesn't bother me but when I present tutorials etc (and I'm doing an Eclipse Tutorial at OSCON next month)
it doesn't look very nice.
I also get the same chars in the hover help of the error.

Can anyone help?


...Beth

Beth Tibbitts (859) 243-4981 (TL 545-4981)
Eclipse Parallel Tools Platform http://eclipse.org/ptp
Mailing Address: IBM Corp., Coldstream Research Campus, 745 West New Circle Road, Lexington, KY 40511

Inactive hide details for Eric Hildum ---06/17/2009 02:03:09 PM---Eclipse picks up its information from the host environment. IEric Hildum ---06/17/2009 02:03:09 PM---Eclipse picks up its information from the host environment. Internally, as Eclipse is Java everything is done in UCS-2 or UTF-1


To

"CDT General developers list." <cdt-dev@xxxxxxxxxxx>

cc


Subject

Re: [cdt-dev] Chinese character support in debug

Eclipse picks up its information from the host environment. Internally, as Eclipse is Java everything is done in UCS-2 or UTF-16 (depending on the version of the JRE you are using). Conversions to/from the local host encoding are done by the JRE and by the settings you found.

Other tools are another matter; things like GDB are probably C, and thus potentially have a host of issues that you may not be able to work around.

On Wed, Jun 17, 2009 at 9:58 AM, Mike Wrighton <mike.wrighton@xxxxxxxxxxxxxx> wrote:
    Thanks. I can see the 'console encoding' option in the common tab of the debug launch configuration, and then there is workspace text file encoding. Both were set to default of Cp1252...

    I wonder if I need to install more encoding formats into Eclipse?

    2009/6/17 Eric Hildum <xfq473@xxxxxxxxxxxx>

    There are (at least) three separate settings for character encoding in Eclipse/CDT. You have to have them all set correctly for things to work properly if you are using anything other than the current Windows code page.

    There is a project setting, and console setting, and something else which I cannot recall at this point (I hit this issue over two years ago with a sample project).

    Note: as I recall, Eclipse also confuses character set and character encoding, so settings are not always named correctly and you cannot be certain what will actually be changed by the setting. Unfortunately, this confusion occurs in standards, many common reference sources, etc. so we are always going to have to guess what is actually meant.

    Correct definitions:

    Character set - the set of characters in use/represented (where each character can have one or more glyphs associated with it).

    Character encoding - the assignment of numeric values to the characters in the character set.

    Character encoding DOES NOT uniquely specify the character set, though common usage in the industry implies that this is the case. In several major cases, the same encoding scheme can be used with multiple character sets and you need additional information to know which character set is being used with the encoding.


    On Wed, Jun 17, 2009 at 7:52 AM, Mike Wrighton <mike.wrighton@xxxxxxxxxxxxxx> wrote:
      There are a few bugs related to similar issues but I think this is
      slightly different - I've installed and enabled Chinese character
      support in windows and created a CDT project where everything is ASCII
      apart from the workspace directory which is in Chinese. When I try to
      debug it, I can see that one of the MI commands passed to GDB is:

      13-environment-cd C:\\??\\test

      Where "??" should actually be the chinese workspace directory. This
      causes the debugger to complain and the session is terminated.

      Should Chinese characters in filenames work in CDT + GDB?

      Thanks,
      Mike

      _______________________________________________
      cdt-dev mailing list

      cdt-dev@xxxxxxxxxxx
      https://dev.eclipse.org/mailman/listinfo/cdt-dev



    --
    Eric Hildum
    Senior Product Manager, Mobile Developer Tools & SDK
    Developer Platforms and Services
    Ecosystem and Market Development
    Motorola
    Direct: +1-408-541-6809

    809 11th Avenue
    Sunnyvale, CA 94089
    USA

    _______________________________________________
    cdt-dev mailing list

    cdt-dev@xxxxxxxxxxx
    https://dev.eclipse.org/mailman/listinfo/cdt-dev



    _______________________________________________
    cdt-dev mailing list

    cdt-dev@xxxxxxxxxxx
    https://dev.eclipse.org/mailman/listinfo/cdt-dev



--
Eric Hildum
Senior Product Manager, Mobile Developer Tools & SDK
Developer Platforms and Services
Ecosystem and Market Development
Motorola
Direct: +1-408-541-6809

809 11th Avenue
Sunnyvale, CA 94089
USA
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev




--
Eric Hildum
Senior Product Manager, Mobile Developer Tools & SDK
Developer Platforms and Services
Ecosystem and Market Development
Motorola
Direct: +1-408-541-6809

809 11th Avenue
Sunnyvale, CA 94089
USA

GIF image

GIF image


Back to the top