Windows: Can't export to WAP, OGG, FLAC files with the path name that contains non-ASCII characters

• Aug 7, 2020 - 20:28
Reported version
3.5
Priority
P1 - High
Type
Functional
Frequency
Few
Severity
S3 - Major
Reproducibility
Always
Status
closed
Regression
Yes
Workaround
Yes
Project

1) create any msz file (for instance, a drum track)
2) export the file into WAV, use Unicode characters (I used Russian letters, because I'm from Russia)
3) get an error 'could not write a file'
4) try items 1-3 but export into mp3 - no errors

Attachment Size
Луна_drum_track.mscz 22.54 KB

Comments

Title An issue when exporting a file into WAV with the file name taht contains Unicode characters Can't export to WAV with the file name that contains Unicode characters

Russian letters appear both in the file name and in the folder name.
OS is Windows 10
The WAV data is really what I need (no mp3).
It's probably to do with Unicode characters as I may deduce...

Attachment Size
Screenshot_7.png 35.76 KB
Title Can't export to WAV with the file name that contains Unicode characters Wondows: Can't export to WAV with the file name that contains Unicode characters

Well, it seems like it does have to do with the Russian letters in the PATH (subfolders) name. I tried to export to WAV into the main root ("d:\") - and it worked, I got no errors!!!

Title Windows: Can't export to WAV with the file name that contains Unicode characters Windows: Can't export to WAV with the path name that contains Unicode characters

It sure is a bug.

In reply to by Jojo-Schmitz

Well, what about our Japanese (Chinese, Italian, French, Polish, etc.) friends?? ))
So, what we are having at the moment:
the issue is - Unicode characters in the file path name (either in the name or in the path part) and then - an attempt to export into WAV, then:
1) if the PATH name consists of Unicode characters - we get an error 'could not export',
2) if the PATH DOES NOT consist of Unicode characters, but the FILE NAME does - no errors, but damaging the characters in the file name.

Same for Japanese it seems, probably Chinese, Arab and Hebrew too. Italian, French and Polish don't have these 'strange' characters I guess

Title Windows: Can't export to WAV with the path name that contains Unicode characters Windows: Can't export to WAP, OGG, FLAC files with the path name that contains non-ASCII characters

Indeed, not just .WAV, but also .OGG and .FLAC, but not .MP3 (not for me anyhow)
Which sort of makes sense: MP3 is saved via LAME (lame_enc.dll), using saveMp3(), the others via Qt, via saveAudio(), so we may be looking at a Qt bug here? And as it worked in MuseScore 3.4, possible a bug with Qt 5.9.9, the previous version(s) used Qt 5.9.8? Or is it related to #287955: In Windows Explorer, files with special characters in filepath don't open when double-clicked, resp. the fix for that in 3.5?

If it is a Qt bug, Qt 5.12.9 would be affected by it too (as verified with a self-build MuseScore)
Hmm, I'm not sure, aren't the other audio formats created via libsndfile rather than via Qt?
OK, it is libsndfile, not Qt... and that hasn't been changed between 3.4.2 and 3.5.0

Fix version
3.5.1