Menu

#551 File dialog filter problem with * or [ in directory

open
nobody
Program (402)
5
2006-09-27
2006-09-27
No

1. mkdir 'xx*xx'
2. nedit
3. Open file dialog.
4. Select xx*xx directory (without descending into
it).
5. Goto 4 and watch how the filter gets a /xx*xx
inserted each time.

This also happens with a [ in a directory's name.

The [ also seems to behave exactly as the * in the
filter, is this intentional?

NEdit 5.5
Sep 30, 2004

Built on: Linux, 386, GNU C
Built at: Aug 11 2006, 20:46:07
With Motif: 2.2.3 [@(#)Motif Version 2.2.3]
Running Motif: 2.2 [unknown]
Server: The X.Org Foundation 70000000
Visual: 24-bit TrueColor (ID 0x21, Default)
Locale: de_DE@euro

NEdit 5.3
Jun 1, 2002

Built on: Linux, x86, GNU C
Built at: Jan 25 2003, 00:39:29
With Motif: 2002 [@(#)Motif Version 2.2.2]
Running Motif: 2002
Server: The X.Org Foundation 70000000

Discussion

  • Thorsten Haude

    Thorsten Haude - 2006-09-27

    Logged In: YES
    user_id=119143

    I don't see it:

    Enhanced NEdit 5.5
    Nov 24, 2005

    Built on: Linux, 486, GNU C
    Built at: Jan 2 2006, 20:46:10
    With Motif: 2.2.3 [@(#)Motif Version 2.2.3]
    Running Motif: 2.2 [@(#)Motif Version 2.2.3]
    Server: The XFree86 Project, Inc 40399902
    Visual: 16-bit TrueColor (ID 0x22, Default)
    Locale: de_DE

    I also have these entries in ~/.Xresources:
    *XmFileSelectionBox.resizePolicy: XmRESIZE_NONE
    *XmFileSelectionBox.pathMode: XmPATH_MODE_RELATIVE
    *XmFileSelectionBox.width: 500
    *XmFileSelectionBox.height: 500

    Could you please test them?

     
  • Thorsten Haude

    Thorsten Haude - 2006-09-27
    • labels: --> Program
     
  • Thorsten Haude

    Thorsten Haude - 2006-09-27

    Logged In: YES
    user_id=119143

    About the [: I see a slightly different thing, namely that
    any [ in the Filter field sets the filter field to *. The
    difference is that eg. 't*' would only find files starting
    with t, 't[' would find any file. Is this what you see?

    Probably a Motif bug.

     
  • Alex Schuster

    Alex Schuster - 2006-09-27

    Logged In: YES
    user_id=1282251

    The bug does not happen when the pathMode is set to
    XmPATH_MODE_RELATIVE.

    You are sort of right about the [/* difference, t[ indeed
    finds any file. That is, UNLESS I use the
    XmPATH_MODE_RELATIVE resouce. In that case, k* also finds
    ANY file.

    Another thing I noticed, not related to the [/* problem:
    Changing the path part of the filter and pressing enter or
    the Filter button does not change anything, if the path is
    not existing. Bug or feature?

     
  • Thorsten Haude

    Thorsten Haude - 2006-09-27

    Logged In: YES
    user_id=119143

    Is this all with your version of 5.5 indicated in the
    initial text? (Let's ignore the older version, Motif 2.2.2
    is very buggy.)

    Non-existing path: Looks like a bug, again probably Motif's
    not NEdit's.

    I tested this with Lessitf 2.1/0.93.94. The FSB looks
    different, but I see no problem.

    Any idea how to reproduce this? Anyone?

     
  • Alex Schuster

    Alex Schuster - 2006-09-28

    Logged In: YES
    user_id=1282251

    Yes, that's with 5.5.

    I also tried with CygWin + LessTif 2.1/0.93.94, there is no
    such problem.

    I will file a bug at bugs.openmotif.org then.

     

Log in to post a comment.