damienhaynes / moving-pictures

Moving Pictures is a movies plug-in for the MediaPortal media center application. The goal of the plug-in is to create a very focused and refined experience that requires minimal user interaction. The plug-in emphasizes usability and ease of use in managing a movie collection consisting of ripped DVDs, and movies reencoded in common video formats supported by MediaPortal.
12 stars 6 forks source link

cannot play files with letter "I" in Turkey #1091

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Change Windows' regional settings to Turkish
2.Import a movie with a filename including letter "I"
3.Try to play video from moving pictures plugin

Let's say the file name is DVD1.ISO. Then the problem happens. When I rename 
the file to DVD1.iso, and reimport to moving pictures db it plays fine.

I am pretty sure what the problem is. This is known as "Turkish I problem". 
There are two letters in Turkish i and ı and their corresponding capitals İ 
and I. If there is a code that changes filenames from lowercase to uppercase or 
vice versa using non-local version functions problems occurs. For example 
DVD1.ISO becomes DVD.ıso not DVD.iso. As a result Windows does not find the 
file.

The fix is quite simple: changing tolowercase/touppercase functions to 
tolowercaselocale/touppercaselocate pairs.

If this is the problem indeed, I hope that all code is scanned so that this 
never happens again.

What is the expected output? What do you see instead?
Play the movie normally

What version of Moving Pictures are you using? What version of MediaPortal?
What Skin?
Moving Pictures 1.2.3.1329
MP 1.2.2
Streamed MP

Please attach a screenshot and logs if possible. When submitting log files
please submit DEBUG logs. See here for details:
http://tinyurl.com/aj65su

Original issue reported on code.google.com by omerfaru...@gmail.com on 8 Apr 2012 at 9:59

Attachments: