audio exported under name without one dot of many

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Post Reply
krzysztofS
Posts: 6
Joined: Mon Jan 25, 2016 5:17 pm
Operating System: Windows 7

audio exported under name without one dot of many

Post by krzysztofS » Tue Jan 26, 2016 8:14 pm

Windows 7 32bit, Audacity 2.1.2 exe
linuxmint-17.3-cinnamon-64bit, Audacity 2.0.5

Hello,

The suggested default file name to Export Audio (Shift+Ctrl+E) or Export Selected Audio lacks one dot if there are a multiple dots in original file name before file extension.

a..wav <--- original file opened
a.wav <--- wrong file saved

X..X...wav <--- opened
X..X..wav <--- saved

Although few people might use such name schema, they are valid file names, so I think it is a bug.

Cheers,
KrzysztofS

kozikowski
Forum Staff
Posts: 68902
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: audio exported under name without one dot of many

Post by kozikowski » Tue Jan 26, 2016 9:10 pm

I think it is a bug.
You should be careful how you toss around the "B" word.
few people might use such name schema
The way I understand it, dot management is an effort to decide whether or not the user intends to add their own extension. It has nothing to do with valid filenames. Few Mac people and no Windows user ever gets to see a valid filename.

If it didn't shift, a user could easily get a filename such as MyMusic.MP3.wav. In Windows, this would look like MyMusic.MP3.

It's not an MP3.

Koz

steve
Site Admin
Posts: 80679
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: audio exported under name without one dot of many

Post by steve » Tue Jan 26, 2016 10:10 pm

On Linux, if I export as "...wav" I get a file called "...wav" (note that is "dot dot dot wav", not "dot dot - dot wav" or "dot dot dot - dot wav"). By default it is "invisible" ("hidden").

If I copy that file to a Windows machine, it is not hidden, but by default it is displayed as ".."
Have you contacted Microsoft about this "bug"? ;)

cyrano
Posts: 2629
Joined: Fri Apr 17, 2015 11:54 pm
Operating System: macOS 10.13 High Sierra

Re: audio exported under name without one dot of many

Post by cyrano » Wed Jan 27, 2016 12:30 am

Some of these names might be valid in the file system. But especially double dots are not valid in networks and not even in some versions of Windows Explorer.

A double dot will get you in to trouble with network transfer. Some tools refuse files with double dots, others crash or place your file in the wrong directory, making it look as if the file disappeared after transfer. It's even a great way to test security.

So I wouldn't call this an Audacity bug. More like a hacker's wet dream :lol:

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: audio exported under name without one dot of many

Post by Gale Andrews » Wed Jan 27, 2016 4:57 pm

I agree you might call it a minor bug. If you open "a..wav", you are offered "a." in the exported file name, with the ".wav" being implied if you are saving as WAV. Saving should then show you the overwrite warning but it creates a new file "a.wav".

Another symptom - typing "a" and "a." both produce "a.wav".

Most Windows apps will show you the file name and extension, so opening "aa.txt" and "Save as" will offer "aa.txt". It may or may not be a wxWidgets for Windows limitation but I don't know why we don't show the default extension in the offered file name (the one that will be used if you overtype and just type the file name).


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

kozikowski
Forum Staff
Posts: 68902
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: audio exported under name without one dot of many

Post by kozikowski » Wed Jan 27, 2016 7:33 pm

I don't know why we don't show the default extension in the offered file name
I wondered that.

Koz

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: audio exported under name without one dot of many

Post by Gale Andrews » Wed Jan 27, 2016 9:13 pm

kozikowski wrote:
I don't know why we don't show the default extension in the offered file name
I wondered that.
On Mac, importing "a..wav" works as one would hope. When you export you are offered "a..wav" and when you save you get the overwrite warning (assuming you are in the same directory).


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

kozikowski
Forum Staff
Posts: 68902
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: audio exported under name without one dot of many

Post by kozikowski » Wed Jan 27, 2016 10:22 pm

When I export an equalizer curve, I don't automatically get .xml at the end (that I remember).
Koz

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: audio exported under name without one dot of many

Post by Gale Andrews » Thu Jan 28, 2016 3:07 pm

kozikowski wrote:When I export an equalizer curve, I don't automatically get .xml at the end (that I remember).
If you use the current 2.1.2 release this works correctly on Mac. If other than XML extension is supplied, or if no extension is supplied, ".XML" is added to the end of the exported file.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Post Reply