[mythtv-commits] Ticket #5822: mythmusic cannot see any files with accents or internationnal characters

MythTV mythtv at cvs.mythtv.org
Wed Dec 10 18:25:26 UTC 2008

#5822: mythmusic cannot see any files with accents or internationnal characters
 Reporter:  pjsanon at hotmail.com  |        Owner:  ijr 
     Type:  defect               |       Status:  new 
 Priority:  critical             |    Milestone:  0.22
Component:  mythmusic            |      Version:  head
 Severity:  medium               |   Resolution:      
  Mlocked:  0                    |  

Comment(by teething12 at hotmail.com):

 Having never really programmed in Linux or QT, I began looking into this
 after upgrading to trunk (my wife has a lot of accented character songs).

 Anyways after a little bit of playing with a stripped down QT console
 version of filescanner.cpp, I was able to hack this to work on my box by
 at the beginning of the BuildFileList function. After running the
 filescanner again it succesfully added and plays all the songs with
 special characters.

 Playing with my program I noticed that if I don't call QCoreApplication
 a(argc, argv) prior to the entryInfoList call, it will not return files
 with accented characters, but by setting the codec it does work.

 Also calling QTextCodec::codecForLocale().name() with or without
 QCoreApplication returns "System". after the setCodecForLocale it returns
 what I set it too.  Haven't checked it in myth yet since I have been doing
 it remotely.

 I'm going to look into this further and try to find a proper solution.

Ticket URL: <http://svn.mythtv.org/trac/ticket/5822#comment:1>
MythTV <http://www.mythtv.org/>

More information about the mythtv-commits mailing list