#542 Crash trying to open a file on ubuntu if LANG=en_AU.UTF-8

Program (402)
John Clarke

Raising a new bug as requested by yooden in bug 1440331.

The nedit binary from nedit.org crashes on a standard
ubuntu desktop installation (hoary, breezy, dapper) if
I press Control-O to open a file.

The crash is dependent upon the value of LANG. The
default in ubuntu seems to be to use UTF8, and so I had
LANG=en_AU.UTF-8. If I unset LANG then run nedit, it
works perfectly.

If I use the binary provided by ubuntu, I get lots of
weird errors all apparently due to lesstif. Changing
or unsetting LANG doesn't seem to make much difference.

Rebuilding the ubuntu package with openmotif instead
fixes most of the problems, although the file open
dialog doesn't work properly if LANG is set. With LANG
unset, this version works just as well as the binary
from nedit.org.

The ubuntu bug report is here:


and for anyone using ubuntu who wants a working
package, I've put my nedit-dmotif here:


That's the nedit source package from dapper modified to
build with openmotif instead of lesstif, and renamed to
nedit-dmotif to distinguish it from ubuntu's binary


  • Thorsten Haude

    Thorsten Haude - 2006-09-17

    Logged In: YES

    First of all, you could use LANG=en_AU, you don't have to
    unset it. No LANG at all means falling back to LANG=C.

    About the crash: Could you provide us with a core file?

  • John Clarke

    John Clarke - 2006-09-17

    Logged In: YES

    I can't use LANG=en_AU, if I do, the file open dialog
    doesn't work properly.

    I can't give you a core file now; I'm travelling and won't
    be home until mid-October. I'll be happy to provide a core
    dump after I return if you can wait that long.

  • Thorsten Haude

    Thorsten Haude - 2006-09-17

    Logged In: YES

    LANG: I see, so we have three different states here.

    Core: Have fun, get back here when you are ready.

  • John Clarke

    John Clarke - 2006-09-18

    Logged In: YES

    LANG: Yes, but only with openmotif.
    - en_AU.UTF-8: nedit crashes when I type control-O.
    - en_AU: the file open dialog appears but doesn't work
    properly when I type control-O.
    - unset: nedit works fine.

    With lesstif, nedit doesn't work properly regardless of
    whether LANG is set or not.

    core: OK, I'll do it after I get home.

    And thanks, we're already having fun :-)

  • Scott Tringali

    Scott Tringali - 2006-09-29

    Logged In: YES

    Please try this:

    setenv LANG C
    env LC_CTYPE=en_AU.UTF-8 nedit
    env LC_COLLATE=en_AU.UTF-8 nedit
    env LC_TIME=en_AU.UTF-8 nedit
    env LC_NUMERIC=en_AU.UTF-8 nedit
    env LC_MONETARY=en_AU.UTF-8 nedit
    env LC_MESSAGES=en_AU.UTF-8 nedit
    env LC_ALL=en_AU.UTF-8 nedit

    Each time, run the nedit and see if it dies.

    I understand crash, but what does "doesn't work properly" mean?

  • Scott Tringali

    Scott Tringali - 2006-10-26

    Logged In: YES

    Are you using OpenMotif 2.2.3? If so, try the latest CVS
    version. I've checked in a fix to disable UTF8 for LC_CTYPE
    for all OpenMotif 2.2.3. Some folks have noted that it
    still crashes, whereas my copy of OM 2.2.3 (Fedora Core 2
    and 3) doesn't have the problem.

  • John Clarke

    John Clarke - 2006-10-27

    Logged In: YES

    With LANG=C and any one of LC_COLLATE, LC_TIME, LC_NUMERIC,
    LC_MONETARY or LC_MESSAGES set to en_AU.UTF-8,
    nedit+openmotif seems to be working normally.

    If LC_CTYPE=en_AU.UTF-8 or LC_ALL=en_AU.UTF-8, the file open
    dialog doesn't work, as I reported earlier. "Doesn't work
    properly" means that directory navigation is impossible (it
    initially shows the directory containing the current open
    file, but returns to the directory from which nedit was
    started if I try to change to another directory) and any
    attempt to select a file, by either keyboard or mouse,
    results in a pop-up dialog which says "Please select a file
    to open".

    Yes I'm using openmotif 2.2.3 (2.2.3-1.2ubuntu2). I'll try
    the latest cvs version and let you know what happens. After
    that, I'll reinstall ubuntu's nedit and get a core dump.

  • Nobody/Anonymous

    Logged In: NO

    Confirm - on edgy release with LANG = en_US.UTF-8
    (Why this is a not-SANE setting?) File->Save works,
    File->Save-as crashes..

    Of course I can no longer find nedit in the ubuntu distros at all


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks