Parent document is top of "Motif FAQ (Part 9 of 9)"
Previous document is "318) How does the clipboard mechanism work?"
Next document is "320) Why is XtWindow(widget) == 0?"

319) Why does the xyz application core dump when I cut and paste?

Answer:  Application crashes when text is cut and pasted into an XmText widget
may occur with statically linked executables linked with X11R5 libraries under
SunOS. For example, a Netscape README file says:

    The SunOS 4.1 [Netscape 0.94] distribution also includes a directory
    called "nls".  This directory is a standard part of the MIT X11R5
    distribution, but is not included with OpenWindows 3.0 or earlier.  We
    have linked Netscape against the MIT R5 libraries because they are
    less buggy in general; however, they have one rather serious bug,
    which is that if this "nls" directory does not exist, the program will
    dump core any time you try to paste into a text field!

    So, if you don't have the "nls" directory on your system, you will
    need to install it first.  The usual place is /usr/lib/X11/nls,
    but you can put it anywhere: just point the $XNLSPATH environment
    variable at it.

    Some sites don't have their X libraries installed in /usr/lib/X11/.
    This doesn't matter.  You either need to put the nls directory in
    /usr/lib/X11/, or every user will need to set this environment
    variable.

So, for example, we do:

       setenv XNLSPATH /usr/local/x11r5/lib/X11/nls

since our X11R5 is not installed in the default location.

Parent document is top of "Motif FAQ (Part 9 of 9)"
Previous document is "318) How does the clipboard mechanism work?"
Next document is "320) Why is XtWindow(widget) == 0?"