Skip to Content.
Sympa Menu

texmacs-users - Re: [TeXmacs] segmentation fault

Subject: mailing-list for TeXmacs Users

List archive

Re: [TeXmacs] segmentation fault


Chronological Thread 
  • From: Joris van der Hoeven <address@hidden>
  • To: address@hidden
  • Cc: address@hidden
  • Subject: Re: [TeXmacs] segmentation fault
  • Date: Sat, 12 Jul 2008 19:11:29 +0200

Dear Wolfgang,

On Mon, Jun 23, 2008 at 11:21:52AM +0200, Wolfgang Jansen wrote:
> Half year ago I tried to install TeXmacs on SUN from sources
> (the existing binary is rather old). Installation failed
> because of errors in C++ code. My bug report from 12/14/07 seems
> have to be forgotten: the last version just downloaded fails as well.
> So, I still work with the holy trinity emacs/latex/xdvi.

I am very sorry for my late reply; as told in a previous email,
I am very busy at the moment and have difficulties to keep up maintaining
TeXmacs,
especially on more exotic platforms...

> ./Window/X/x_loop.cpp: In member function 'string
> x_display_rep::look_up_key(XKeyEvent*)':
> ./Window/X/x_loop.cpp:76: error: 'Xutf8LookupString' was not declared in
> this scope
> gmake: *** [Objects/x_loop.o] Error 1

You may replace

if (im_ok) {
x_window win= (x_window) Window_to_window[ev->window];
char str[256];
Status status;
int count = Xutf8LookupString (win->ic, (XKeyPressedEvent*) ev,
str, 256, &key, &status);
string r (str, count);
r= utf8_to_cork (r);
if (contains_unicode_char (r)) return r;
}
else XLookupString (ev, NULL, 0, &key, NULL);

by something like

#ifdef OS_SUN
XLookupString (ev, NULL, 0, &key, NULL);
#else
if (im_ok) {
x_window win= (x_window) Window_to_window[ev->window];
char str[256];
Status status;
int count = Xutf8LookupString (win->ic, (XKeyPressedEvent*) ev,
str, 256, &key, &status);
string r (str, count);
r= utf8_to_cork (r);
if (contains_unicode_char (r)) return r;
}
else XLookupString (ev, NULL, 0, &key, NULL);
#endif

Please tell me whether that helps.

Best wishes, Joris



Archive powered by MHonArc 2.6.19.

Top of Page