Can’t share folders with accented character in name

For help and support with issues specific to Mac OS X
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply.

Can’t share folders with accented character in name

Postby GeJe » Tue Aug 06, 2013 11:13 am

Hi,

Since I upgraded to PMS-1.90.0 I can no longer share folders with accented characters like “Séries”.
If I rename it “Series”, everything is back to normal.

Test with PMS-1.90.1 resulted in the same issue.

Thanks
User avatar
GeJe
 
Posts: 4
Joined: Mon Aug 05, 2013 4:57 pm

Re: Can’t share folders with accented character in name

Postby Raptor399 » Wed Aug 07, 2013 9:35 pm

I can replay your bug and found that the problem lies in MapFile.java, line 158.

Code: Select all
               File[] files = file.listFiles();

That list simply does not contain the file with the special character in its name.

I did some googling and it appears that Java does not discover files if they are not in the default locale for Java. See this ancient bug report, which Sun discarded as "not an issue".

Since PMS for Mac OSX ships with Java 7 included, it may be that that particular installment of Java comes with the wrong default locale for your system.

So the workaround is to either start up Java with the correct locale for your machine (see the bug report and edit "/Applications/PS3 Media Server.app/Contents/MacOS/pms.sh" accordingly), or don't use special characters in file names as you already discovered.
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

Re: Can’t share folders with accented character in name

Postby GeJe » Thu Aug 08, 2013 2:15 pm

Hi and thank you for you answer.

Basically, what changed in PMS-1.90.0 since it was fine with the previous release? Is Java 7 inclusion new to this version?

Thanks
User avatar
GeJe
 
Posts: 4
Joined: Mon Aug 05, 2013 4:57 pm

Re: Can’t share folders with accented character in name

Postby Druxar » Thu Aug 08, 2013 4:07 pm

I would also like to know how to fix this.
Before 1.90.0 I was able to play MP3s with foreign characters and suddenly when I went to play a folder, half the songs were missing (that's how I discovered the issue was with the characters in the filenames).
In upgrading to 1.90.0 I also upgraded the Mac java from 6.x to 7.x so I'm not sure what got broken but I'd like to know how to fix it.
Surely there's a lot of people who also will be having problems with the fact that some of their files are no longer accessible and this issue will be popular enough to be addressed?
Druxar
 
Posts: 4
Joined: Mon Aug 15, 2011 1:17 am

Re: Can’t share folders with accented character in name

Postby GeJe » Thu Aug 08, 2013 4:42 pm

I haven’t done any Java updating before upgrading to PMS-1.90.0 so I don’t think this is related the system’s Java plugin.
User avatar
GeJe
 
Posts: 4
Joined: Mon Aug 05, 2013 4:57 pm

Re: Can’t share folders with accented character in name

Postby Raptor399 » Fri Aug 09, 2013 7:30 am

The PMS installer comes with its own version of Java.
This means that the version of Java that you installed on your computer is not used.

I have committed a fix for this problem.
Please try the snapshot build (once the server has picked up the change somewhere within the hour).
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

Re: Can’t share folders with accented character in name

Postby GeJe » Fri Aug 09, 2013 4:48 pm

Back in the loop, working great, thanks for your dedication!
User avatar
GeJe
 
Posts: 4
Joined: Mon Aug 05, 2013 4:57 pm

Re: Can’t share folders with accented character in name

Postby Druxar » Fri Aug 09, 2013 10:40 pm

Works for me again too.
Thanks for the rapid response just in time for the weekend.
Druxar
 
Posts: 4
Joined: Mon Aug 15, 2011 1:17 am


Return to Mac OS X Support

Who is online

Users browsing this forum: No registered users and 4 guests