[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: debugging source with extended characters

From: ted creedon
Subject: RE: debugging source with extended characters
Date: Mon, 4 Sep 2006 10:33:10 -0700

Read the past mailing list, I describe how to set up the locale, etc environmental variables


That might be the problem




From: address@hidden [mailto:address@hidden On Behalf Of Terry Ebaugh
Sent: Saturday, September 02, 2006 11:05 PM
To: address@hidden
Subject: debugging source with extended characters


Hi all,

I'm new to using ddd.  I checked google and the ddd website but I couldnt find an answer to my question.

I have a source file that has ISO-8859-1 characters in it (like the british pound symbol)  When I load my program into ddd it will only display the source code up to the point where it first encounters one of the characters above A0 in the character set.  Its hard to set break points without seeing the rest of my source code.  Does anyone know how I can get around this?

I can view the characters just fine in vi.  Here is a sample of the code although I'm unsure if it will come across in email.

 if ( strcasecmp(el, "dataset") == 0) {
         printf("£%s¦%d¦%s:%s", host, cur_file_num, version, el);
         for (i = 0; attr[i]; i += 2) {

ddd stops displaying the source once it sees the first character after the " in the printf.

address@hidden:/home/tebaugh/.ddd> ddd --check-configuration
Checking for X11 library directory... /usr/X11R6/lib/X11
Checking for XKeysymDB... /usr/X11R6/lib/X11/XKeysymDB
No configuration problems found.

GDB is set for ISO-8859-1 in host and target settings. 

Can anyone help out a ddd newbie?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]