This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: About Insight's GUI , please help me ~


On Tue, 2004-02-03 at 17:05, Feng Li wrote:
>  I have to make Insight's GUI can show Chinese or other wide characters, not only menu but also the source code in the view. I have not any ideas, but I am very love Linux, it likes a family that we can make it better together. 

You're going to run into several difficulties. While it is possible for
Insight to display wide characters (since Tk does), much of the Insight
code is written using strings instead of Tk's utf drivers. Although
tedious, this could be pretty easily fixed.

Insight's user messages (window features, many dialogs, etc) could also
be fixed to use a message catalog, one for each language. [These are the
messages that the GUI code itself outputs to the user.]

The real problem is gdb. Although some work has been done to get gdb to
use a message catalog, it is by no means complete, and, in fact, may
never be complete without some very non-trivial work. Gdb does things
like (output variable types & values, e.g.):
	printf_unfiltered ("There was a problem with breakpoint ");
	printf_unfiltered ("%d", num);
	printf_unfiltered (".");
	
This would require massive amounts of effort to clean up properly.

All in all, it can be done. My belief: the real work is in gdb.

Keith



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]