Page 1 of 1

Linux - Missing Audio Files

Posted: Wed Jul 01, 2015 11:01 am
by Executioner
I have my Linux installation set up to use UTF-8 filenames, and UMS is working fine except I found one music folder Communiqué which wouldn't display any of the tracks. It turns out (using the debugger) that Java doesn't like the é in the filename and returns false for File.exists(). Digging a little deeper, the native code calls back into the JVM to perform character encoding using a different charset (ANSI_X3.4-1968), even though when I boot up UMS it tells me Java is using UTF-8. It turns out there is a separate property called sun.jnu.encoding, but you can't just set that with a -D parameter for the JVM, you need to set the system environment variable LC_ALL. I've set mine using

Code: Select all

export LC_ALL=”en_GB.UTF-8″
and all is now fine.