Audacity Bug Summary
••• Introduction •••
••• Keywords •••
    Audacity 3.0.3 development began 19th April 2021

Audacity Bugzilla



Bug 728 - All files mask wrong for Linux in some dialogues
All files mask wrong for Linux in some dialogues
Status: RESOLVED FIXED
Product: Audacity
Classification: Unclassified
Component: User Interface
2.0.6
Other Linux
: P4 Repeatable
Assigned To: Default Assignee for New Bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-22 17:59 UTC by Gale Andrews
Modified: 2018-08-20 11:51 UTC (History)
5 users (show)

See Also:
Steps To Reproduce:
Release Note:
First Git SHA:
Group: ---
Workaround:
Closed: 2018-08-20 00:00:00


Attachments
Fix all files mask for Linux (5.60 KB, patch)
2014-05-22 17:59 UTC, Gale Andrews
Details | Diff
Update "All files" filters (6.88 KB, patch)
2014-05-28 11:20 UTC, Steve Daulton
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gale Andrews 2014-05-22 17:59:55 UTC
Created attachment 490 [details]
Fix all files mask for Linux

The mask that is currently used for "All files" in some dialogues is "*.*" 
This will find files "fred.txt" and "fred." and "fred.whatever" but will not
find "fred" (with no dot). The proper mask to find ALL files in Linux is "*".

For example,
wxString(_("XML files (*.xml)|*.xml|All files (*.*)|*.*"))
should be
wxString(_("XML files (*.xml)|*.xml|All files (*.*)|*"))

I've attached a patch which fixes all the instances I could find (I fixed an
instance in NyqBench.cpp which was not noted in the feedback@ report). Patch
seems OK on indows (files without extension are still found when "All files" is
selected). 

The offending lines appear in
/export/ExportFFmpegDialogs.cpp: line 1725  wxString(_("XML files
(*.xml)|*.xml|All files (*.*)|*.*")),
/export/ExportFFmpegDialogs.cpp: line 1745  wxString(_("XML files
(*.xml)|*.xml|All files (*.*)|*.*")),
/Menus.cpp: line 4660   _("Text files (*.txt)|*.txt|All files (*.*)|*.*"),
/Menus.cpp: line 4705  _("MIDI and Allegro files
(*.mid;*.midi;*.gro)|*.mid;*.midi;*.gro|MIDI files
(*.mid;*.midi)|*.mid;*.midi|Allegro files (*.gro)|*.gro|All files (*.*)|*.*"),
/prefs/KeyConfigPrefs.cpp: line 332  _("XML files (*.xml)|*.xml|All files
(*.*)|*.*"),
 /prefs/KeyConfigPrefs.cpp: line 364 _("XML files (*.xml)|*.xml|All files
(*.*)|*.*"),
/prefs/KeyConfigPrefs.cpp: line 917 _("XML files (*.xml)|*.xml|All files
(*.*)|*.*"),
/prefs/KeyConfigPrefs.cpp: line 949 _("XML files (*.xml)|*.xml|All files
(*.*)|*.*"),
/LabelDialog.cpp:  line 519  _("Text files (*.txt)|*.txt|All files (*.*)|*.*"),
/lib-src/mod-nyq-bench/NyqBench.cpp: line 1032  _("Nyquist scripts
(*.ny)|*.ny|Lisp scripts (*.lsp)|*.lsp|All files|*.*"),
/lib-src/mod-nyq-bench/NyqBench.cpp: line 1078 _("Nyquist scripts
(*.ny)|*.ny|Lisp scripts (*.lsp)|*.lsp|All files|*.*"),
Comment 1 Steve Daulton 2014-05-28 11:20:28 UTC
Created attachment 491 [details]
Update "All files" filters

When the "All files" filter is patched to accept any file name, we are no longer just looking for "All files (*.*)" but are now looking for ALL files, so the filter description needs to also be changed.

The standard label seems to be "All files" (without a wild card abbreviation), so I've updated Gale's patch with (hopefully consistent) filter descriptions for every occurrence that I could find.
Comment 2 Richard Ash 2014-10-02 17:34:27 UTC
Verified bug still exists in SVN rev13363 (just after 2.0.6 release) on Linux.

Patch applies with fuzz and fixes the bug. As this is reported already tested on Windows, committed in SVN rev 13380.

= Manual =
This will make a minor appearance and behaviour change to screenshots of the various Open dialogues (Import MIDI, Labels, locate FFMpeg etc.), if (and only if) the All Files filter is selected for the screen shot or described.

= Testing =
This change needs testing on Mac and Windows platforms to ensure it has no unexpected effects, particularly:
* That the "All Files" filter still shows all files in a directory, including those with no extension and various extensions.
* That the existing filters by extension still work correctly
The dialogues affected include MIDI import and Label import, as well as locating FFmpeg libraries.
Comment 3 Gale Andrews 2014-10-02 21:22:28 UTC
(In reply to comment #1)
Steve wrote:
> The standard label seems to be "All files" (without a wild card 
> abbreviation), so I've updated Gale's patch 
I found Windows apps that did not observe that (i.e. they use the wild card) hence I was unsure about the change. I don't feel strongly about it but it should be pointed out.
Comment 4 Gale Andrews 2014-10-13 13:32:17 UTC
No impact on the Manual, tested on Mac and retested on Win.