[mythtv] MythVideo: Videos with special characters in filename are not found

Michael T. Dean mtdean at thirdcontact.com
Sun Jun 6 21:54:33 UTC 2010


On 05/30/2010 03:37 AM, Mirko wrote:
> I also opened a thread in mythtv-users 3 weeks ago but there was no 
> answer until today. I thought that maybe the dev-group can help me.
>
> Here's the output of 'locale':
>
> LANG=de_DE.UTF-8
> LC_CTYPE="de_DE.UTF-8"
> LC_NUMERIC="de_DE.UTF-8"
> LC_TIME="de_DE.UTF-8"
> LC_COLLATE="de_DE.UTF-8"
> LC_MONETARY="de_DE.UTF-8"
> LC_MESSAGES="de_DE.UTF-8"
> LC_PAPER="de_DE.UTF-8"
> LC_NAME="de_DE.UTF-8"
> LC_ADDRESS="de_DE.UTF-8"
> LC_TELEPHONE="de_DE.UTF-8"
> LC_MEASUREMENT="de_DE.UTF-8"
> LC_IDENTIFICATION="de_DE.UTF-8"
> LC_ALL=

I think this may be a bug in Qt*** coupled with a system-configuration 
issue.

Can you try running all your mythbackends from a shell where you've 
verified the output of locale is as above.  There's a /very/ good chance 
that locale information isn't set in the environment used by your init 
scripts.

Also, if that doesn't work, please try:

export LC_ALL=de_DE.UTF-8

and then start mythbackend.  Once you do that, I have a feeling it will 
work.  If so, you need to fix your init scripts to make sure that locale 
information (possibly including LC_ALL) is set in the environment that 
starts mythbackend.

Mike

*** Note that the bug in Qt is more insidious than the above may make it 
seem.  I'm still looking into the bug and will file a bug report with 
Nokia once I find the broken code.  Basically, the problem is that Qt's 
URI parsing is affected by the CODEC used for locale strings, when it 
should always do a plain UTF-8 conversion.  Fortunately, for users like 
you--who are using a UTF-8 charmap, once you've properly configured your 
environment, the Qt bug won't come into play.


More information about the mythtv-dev mailing list