FileSearchPath::findChildFiles() doesn’t seem to be working if the filename has a ü.
OwnedArray<File> results;
FileSearchPath fsp(T("/Users/rrabien/Documents/Tsamples"));
fsp.findChildFiles(results,false,false,T("*"));
for (int i = 0; i < results.size(); i++)
Logger::outputDebugString(results[i]->getFullPathName());
The above code illustrates the problem using juce 1.37 on Mac OS X 10.4 PPC.
Expected output: /Users/rrabien/Documents/Tsamples/0 Fünky.wav
Actual output: /Users/rrabien/Documents/Tsamples/0 Fu
The actual output is not folowed by a newline as expected. Also, using the string can crash a juce app.
Ok, I tried this, and in fact it’s just the outputDebugString that’s not printing extended characters properly - internally the files are stored just fine.
It’s easy to sort out by tweaking juce_mac_SystemStats.cpp: