Bug 155300 - mgdiff file open dialog broken
Summary: mgdiff file open dialog broken
Status: RESOLVED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: X11 Applications (show other bugs)
Version: Beta 6
Hardware: i586 SuSE Linux 10.1
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Dr. Werner Fink
QA Contact: Stefan Dirsch
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-04 19:20 UTC by Tom Eastep
Modified: 2006-03-07 10:33 UTC (History)
0 users

See Also:
Found By: Beta-Customer
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Screenshot of the message box (218.84 KB, image/jpeg)
2006-03-06 15:27 UTC, Tom Eastep
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Eastep 2006-03-04 19:20:28 UTC
The file open dialog in mgdiff is broken:

a) The "filter" field isn't initialized to ~/* as in prior version although the
   contents of the home directory are displayed.
b) Selecting a file and clicking OK results in an error box ":No such file or directory"
c) Entering a filter expression and the enter key results in the matching files being displayed but the "filter" field immediately clears and selecting a displayed file and clicking OK results in the same error box as described above.
d) The only way to compare two files is to type the fully-qualified path names of the files in the left/right file fields.

This bug appears to be in one of the libraries used by 'mgdiff' rather than in the program itself since downgrading to the version included in SuSE 10.0 doesn't change the observed behavior.
Comment 1 Dr. Werner Fink 2006-03-06 13:57:51 UTC
There _is_ an update to 1.0.1 and yes as described in a) the current
working directory instead of the home directory is showed.  I'll not
change this.

The behaviour in b) I can not verify.  Here I click OK in the first
column after selecting the first file and then I click OK in the
second column after selection the second file.  This works perfect.

The behaviour in c) is as I expect.  In other words I do not unterstand
your problem.  I've expanded the filter in the first columen and
after clicking on the filter button I see the appropiate files listing.
The same in the second column.  What is wrong with that?

If I make the filter fields empty and click on the filter button I
get the current working directory with its file list. If I type in
~/* an click onto the filter button I get the file list of the home
diretory.
Comment 2 Tom Eastep 2006-03-06 15:27:38 UTC
Created attachment 71395 [details]
Screenshot of the message box 

The behavior that I describe is occurring on two different systems that have been upgraded from 10.0 to 10.1 Beta6 (one box was upgraded to Beta 3 then Beta 5 and Beta 6 -- the other was upgraded to Beta 5 and then to Beta 6). When I select a file in the first column and click "OK", I get the message box that I describe above. I've attached a screenshot.

When I get some time, I'll do a fresh install of Beta 6 on one of the systems and see if the problem is still observed.
Comment 3 Dr. Werner Fink 2006-03-06 17:57:13 UTC
The question is: Why are the two filter lines empty if you
have started mgdiff.  I do not see this.
Comment 4 Tom Eastep 2006-03-06 18:01:30 UTC
That's part of the problem (maybe all of the problem) -- and if I enter a filter expression in one of those boxes and hit <enter>, the box is immediately cleared (although the file list is displayed). Selecting a file and clicking OK results in the same message box shown in the screenshot.
Comment 5 Dr. Werner Fink 2006-03-06 18:34:48 UTC
Args ... it depends on the locale. If I use LC_CTYPE=de_DE.UTF-8
I get the following message at startup:

Xt Warning: 
    Name: Text
    Class: XmTextField
    Character '\146' not supported in font.  Discarded.

and two empty filter lines.

Andreas? Could it be that openmotif is not UTF-8 safe?
Comment 6 Dr. Werner Fink 2006-03-06 18:38:30 UTC
Tom? Please try out if the following
command line

      LC_CTYPE=POSIX mgdiff

on the bash prompt works for you.
Comment 7 Andreas Schwab 2006-03-06 18:52:23 UTC
I have no idea.  I know nothing about motif.
Comment 8 Tom Eastep 2006-03-06 20:01:55 UTC
Werner -- the command LC_CTYPE=POSIX mgdiff works for me.
Comment 9 Dr. Werner Fink 2006-03-07 10:33:30 UTC
-------------------------------------------------------------------
Tue Mar  7 11:30:25 CET 2006 - werner@ssue.de

- Change order of setlocale() and XtSetLanguageProc() (bug #155300)

-------------------------------------------------------------------