[mythtv-commits] Ticket #10371: mythcommandlineparser / mytharchivehelper fails on files with non-ascii-filenames
MythTV
noreply at mythtv.org
Sat Feb 25 08:29:22 UTC 2012
#10371: mythcommandlineparser / mytharchivehelper fails on files with non-ascii-
filenames
----------------------------------+-----------------------------
Reporter: t.brackertz@… | Owner: wagnerrp
Type: Bug Report - General | Status: accepted
Priority: minor | Milestone: 0.25
Component: MythTV - General | Version: Master Head
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+-----------------------------
Comment (by t.brackertz@…):
Ok, it seems to me that QApplication does a QString::fromLocal8Bit on the
elements of argv. As QApplication::QApplication gets a pointer to argv
this also affects the argv mythcommandlineparser works on.
Then mythcommandlineparser does another QString::fromLocal8Bit on argv. So
it is applied twice.
Am I right?
If so mythcommandlineparser could check if there is a QApplication-Object
using QCoreApplication::instance () and only do QString::fromLocal8Bit if
not.
So mythcommandlineparser could be used with or without a QApplication-
Object.
Maybe I'm completely wrong.
--
Ticket URL: <http://code.mythtv.org/trac/ticket/10371#comment:6>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
More information about the mythtv-commits
mailing list