Linux - Missing Audio Files

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Post Reply
Executioner
Posts: 12
Joined: Mon Jun 15, 2015 1:34 pm

Linux - Missing Audio Files

Post 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.
Post Reply