-
Notifications
You must be signed in to change notification settings - Fork 258
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
Cannot play file if path has accented character #880
Comments
Fluidsynth expects an UTF8 encoded string. Now the big challenge is how to convince cmd.exe to pass arguments as UTF8. Although this can be done with |
Unfortunately I haven't a direct or simple solution to propose. Usually, to avoid complication I use UTF8 file path most of the time on any files system. Sorry. |
I've added a few more UTF8 test cases to test àccèntèd characters. The tests are passing - even on Windows. Also, I've tested it manually on the Bash in Linux and it works fine. I don't see how this is a limitation of fluidsynth. It's rather a problem related to Windows doing fancy conversions under the hood. If you eventually get it working, you're welcome to enlighten us. |
My workaround is to change working directories to the problematic folder, and run fluidsynth from there. That works as long as the files themselves have normal names. |
FluidSynth version
FluidSynth runtime version 2.2.1
Copyright (C) 2000-2021 Peter Hanappe and others.
Distributed under the LGPL license.
SoundFont(R) is a registered trademark of Creative Technology Ltd.
FluidSynth executable version 2.2.1
Sample type=float
Describe the bug
I'm using the latest release of fluidsynth, 2.2.1, on Windows 10.
When I try to open a file named, say, "filé.mid", with 'fluidsynth.exe "\path\to\soundfont.sf2" "\path\to\filé.mid"', I get an error message: "Parameter '\path\to\filΘ.mid' not a SoundFont or MIDI file or error occurred identifying it."
Renaming the file (or the folder it is in if that's the one with the accented character) solves the problem.
Expected behavior
The file plays normally.
Steps to reproduce
Run fluidsynth.exe on a midi file with an accented character in the path.
Additional context
If you are able to illustrate the bug with an example, please provide simple
source code below or as attached file. List any other information that is relevant to your issue, e.g. stack traces, related issues, build logs, suggestions on how to fix, links to related discussions at fluid-dev, etc.
The text was updated successfully, but these errors were encountered: