-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MIDI files with non-ASCII characters in the filename fail to play on Windows. #1388
Comments
@stardusteyes Thanks for the report. Can you test the fluidsynth-x64 binaries and confirm that this fixes the problem? |
I'm a little concerned that the following is not included, but I don't mind if it doesn't cause any problems. #if defined(_WIN32) I only tested the current issue. Thank you. |
Ok, thanks for confirming. I indeed missed the free(), thanks! |
@derselbst , reopen request:
|
FluidSynth version
fluidsynth.exe --version
FluidSynth runtime version 2.3.6
Copyright (C) 2000-2024 Peter Hanappe and others.
Distributed under the LGPL license.
SoundFont(R) is a registered trademark of Creative Technology Ltd.
FluidSynth executable version 2.3.6
Sample type=float
Describe the bug
On Windows, playback failures due to non-ASCII characters in filenames occur with MIDI files, but not with SoundFont files.
MIDI files that use only ASCII characters in the filename will play correctly.
When _WIN32 macro is enabled.
fluid_is_midifile() is called twice in main() of fluidsynth.c.
The first time, u8_path is set as the argument, which is argv[i] converted by win32_ansi_to_utf8().
The second time, argv[i] is set as the argument without being converted.
This difference is a bit concerning.
Thank you.
The text was updated successfully, but these errors were encountered: