[Openlp-core] [Bug 1209515] Re: getFileNames corrupts file names that use "special chars"
I tested it on KDE, works perfectly. -- You received this bug notification because you are a member of OpenLP Core, which is subscribed to OpenLP. https://bugs.launchpad.net/bugs/1209515 Title: getFileNames corrupts file names that use "special chars" Status in OpenLP: Fix Released Status in OpenLP 2.0 series: Fix Released Status in OpenLP trunk series: Fix Released Bug description: This is a little bit of a strange one. I have written a little script which demonstrates this (I'll include it when I get home). Here's the issue: Use QFileDialog.getFileNames() to select a single file with a special char in its name (a '#' will do it) and it returns the file name & path correctly. Ie selecting a file called "#123.xml" returns a list with one item "#123.xml" However, use QFileDialog.getFileNames() to select multiple files with at lease one file with special char in its name (a '#' will do it) and it returns the file name & path incorrectly. Ie selecting a file called "#123.xml" and a file called "abc.xml" returns a list with two items "%23123.xml" & "abc.xml" (Note the # has been changed in to a %23. Possible url encoding?) When we come to open the file, Python cannot find the file "%23123.xml" because it does not exist. This seams to be a Qt bug (I've done a few searches, but found nothing) but we could at least make some effort to see if the file actually exists before trying to open it! Reported here: http://support.openlp.org/issues/2056 and here: http://support.openlp.org/issues/1964 To manage notifications about this bug go to: https://bugs.launchpad.net/openlp/+bug/1209515/+subscriptions ___ Mailing list: https://launchpad.net/~openlp-core Post to : openlp-core@lists.launchpad.net Unsubscribe : https://launchpad.net/~openlp-core More help : https://help.launchpad.net/ListHelp
Re: [Openlp-core] [Bug 1209515] Re: getFileNames corrupts file names that use "special chars"
I've tested on Ubuntu 17.04 (Unity) and Windows 7. Anybody with KDE, just to round up testing? On Thu, 15 Jun 2017, 02:36 David Wales,wrote: > Tested on OS X El Capitan with python 3, and PyQt 5 installed using > brew. > > Works perfectly. > > -- > You received this bug notification because you are subscribed to the bug > report. > https://bugs.launchpad.net/bugs/1209515 > > Title: > getFileNames corrupts file names that use "special chars" > > Status in OpenLP: > Fix Released > Status in OpenLP 2.0 series: > Fix Released > Status in OpenLP trunk series: > Fix Released > > Bug description: > This is a little bit of a strange one. I have written a little script > which demonstrates this (I'll include it when I get home). > > > Here's the issue: > > Use QFileDialog.getFileNames() to select a single file with a special > char in its name (a '#' will do it) and it returns the file name & > path correctly. Ie selecting a file called "#123.xml" returns a list > with one item "#123.xml" > > However, use QFileDialog.getFileNames() to select multiple files with > at lease one file with special char in its name (a '#' will do it) and > it returns the file name & path incorrectly. Ie selecting a file > called "#123.xml" and a file called "abc.xml" returns a list with two > items "%23123.xml" & "abc.xml" (Note the # has been changed in to a > %23. Possible url encoding?) > > When we come to open the file, Python cannot find the file > "%23123.xml" because it does not exist. > > This seams to be a Qt bug (I've done a few searches, but found > nothing) but we could at least make some effort to see if the file > actually exists before trying to open it! > > Reported here: http://support.openlp.org/issues/2056 > and here: http://support.openlp.org/issues/1964 > > To manage notifications about this bug go to: > https://bugs.launchpad.net/openlp/+bug/1209515/+subscriptions > -- You received this bug notification because you are a member of OpenLP Core, which is subscribed to OpenLP. https://bugs.launchpad.net/bugs/1209515 Title: getFileNames corrupts file names that use "special chars" Status in OpenLP: Fix Released Status in OpenLP 2.0 series: Fix Released Status in OpenLP trunk series: Fix Released Bug description: This is a little bit of a strange one. I have written a little script which demonstrates this (I'll include it when I get home). Here's the issue: Use QFileDialog.getFileNames() to select a single file with a special char in its name (a '#' will do it) and it returns the file name & path correctly. Ie selecting a file called "#123.xml" returns a list with one item "#123.xml" However, use QFileDialog.getFileNames() to select multiple files with at lease one file with special char in its name (a '#' will do it) and it returns the file name & path incorrectly. Ie selecting a file called "#123.xml" and a file called "abc.xml" returns a list with two items "%23123.xml" & "abc.xml" (Note the # has been changed in to a %23. Possible url encoding?) When we come to open the file, Python cannot find the file "%23123.xml" because it does not exist. This seams to be a Qt bug (I've done a few searches, but found nothing) but we could at least make some effort to see if the file actually exists before trying to open it! Reported here: http://support.openlp.org/issues/2056 and here: http://support.openlp.org/issues/1964 To manage notifications about this bug go to: https://bugs.launchpad.net/openlp/+bug/1209515/+subscriptions ___ Mailing list: https://launchpad.net/~openlp-core Post to : openlp-core@lists.launchpad.net Unsubscribe : https://launchpad.net/~openlp-core More help : https://help.launchpad.net/ListHelp
[Openlp-core] [Bug 1209515] Re: getFileNames corrupts file names that use "special chars"
Tested on OS X El Capitan with python 3, and PyQt 5 installed using brew. Works perfectly. -- You received this bug notification because you are a member of OpenLP Core, which is subscribed to OpenLP. https://bugs.launchpad.net/bugs/1209515 Title: getFileNames corrupts file names that use "special chars" Status in OpenLP: Fix Released Status in OpenLP 2.0 series: Fix Released Status in OpenLP trunk series: Fix Released Bug description: This is a little bit of a strange one. I have written a little script which demonstrates this (I'll include it when I get home). Here's the issue: Use QFileDialog.getFileNames() to select a single file with a special char in its name (a '#' will do it) and it returns the file name & path correctly. Ie selecting a file called "#123.xml" returns a list with one item "#123.xml" However, use QFileDialog.getFileNames() to select multiple files with at lease one file with special char in its name (a '#' will do it) and it returns the file name & path incorrectly. Ie selecting a file called "#123.xml" and a file called "abc.xml" returns a list with two items "%23123.xml" & "abc.xml" (Note the # has been changed in to a %23. Possible url encoding?) When we come to open the file, Python cannot find the file "%23123.xml" because it does not exist. This seams to be a Qt bug (I've done a few searches, but found nothing) but we could at least make some effort to see if the file actually exists before trying to open it! Reported here: http://support.openlp.org/issues/2056 and here: http://support.openlp.org/issues/1964 To manage notifications about this bug go to: https://bugs.launchpad.net/openlp/+bug/1209515/+subscriptions ___ Mailing list: https://launchpad.net/~openlp-core Post to : openlp-core@lists.launchpad.net Unsubscribe : https://launchpad.net/~openlp-core More help : https://help.launchpad.net/ListHelp
[Openlp-core] [Bug 1209515] Re: getFileNames corrupts file names that use "special chars"
I just tested on Fedora 25 (gnome shell) with python 3 and PyQt5 installed with the package manager and also on OS X El Capitan with python 3 and PyQt5 installed with macPorts. On both systems it works just fine. Output: `[['/home/jasperge/openlp_bug/#1234.xml', '/home/jasperge/openlp_bug/abc.xml'], 'All Files (*)']` -- You received this bug notification because you are a member of OpenLP Core, which is subscribed to OpenLP. https://bugs.launchpad.net/bugs/1209515 Title: getFileNames corrupts file names that use "special chars" Status in OpenLP: Fix Released Status in OpenLP 2.0 series: Fix Released Status in OpenLP trunk series: Fix Released Bug description: This is a little bit of a strange one. I have written a little script which demonstrates this (I'll include it when I get home). Here's the issue: Use QFileDialog.getFileNames() to select a single file with a special char in its name (a '#' will do it) and it returns the file name & path correctly. Ie selecting a file called "#123.xml" returns a list with one item "#123.xml" However, use QFileDialog.getFileNames() to select multiple files with at lease one file with special char in its name (a '#' will do it) and it returns the file name & path incorrectly. Ie selecting a file called "#123.xml" and a file called "abc.xml" returns a list with two items "%23123.xml" & "abc.xml" (Note the # has been changed in to a %23. Possible url encoding?) When we come to open the file, Python cannot find the file "%23123.xml" because it does not exist. This seams to be a Qt bug (I've done a few searches, but found nothing) but we could at least make some effort to see if the file actually exists before trying to open it! Reported here: http://support.openlp.org/issues/2056 and here: http://support.openlp.org/issues/1964 To manage notifications about this bug go to: https://bugs.launchpad.net/openlp/+bug/1209515/+subscriptions ___ Mailing list: https://launchpad.net/~openlp-core Post to : openlp-core@lists.launchpad.net Unsubscribe : https://launchpad.net/~openlp-core More help : https://help.launchpad.net/ListHelp
[Openlp-core] [Bug 1209515] Re: getFileNames corrupts file names that use "special chars"
mahfiaz, Thanks for that, but could you test the paste bin script linked to in my email (https://lists.openlp.io/pipermail/openlp-dev/2017-June/000273.html) please? Its PyQt5! Also which platform are you on? -- You received this bug notification because you are a member of OpenLP Core, which is subscribed to OpenLP. https://bugs.launchpad.net/bugs/1209515 Title: getFileNames corrupts file names that use "special chars" Status in OpenLP: Fix Released Status in OpenLP 2.0 series: Fix Released Status in OpenLP trunk series: Fix Released Bug description: This is a little bit of a strange one. I have written a little script which demonstrates this (I'll include it when I get home). Here's the issue: Use QFileDialog.getFileNames() to select a single file with a special char in its name (a '#' will do it) and it returns the file name & path correctly. Ie selecting a file called "#123.xml" returns a list with one item "#123.xml" However, use QFileDialog.getFileNames() to select multiple files with at lease one file with special char in its name (a '#' will do it) and it returns the file name & path incorrectly. Ie selecting a file called "#123.xml" and a file called "abc.xml" returns a list with two items "%23123.xml" & "abc.xml" (Note the # has been changed in to a %23. Possible url encoding?) When we come to open the file, Python cannot find the file "%23123.xml" because it does not exist. This seams to be a Qt bug (I've done a few searches, but found nothing) but we could at least make some effort to see if the file actually exists before trying to open it! Reported here: http://support.openlp.org/issues/2056 and here: http://support.openlp.org/issues/1964 To manage notifications about this bug go to: https://bugs.launchpad.net/openlp/+bug/1209515/+subscriptions ___ Mailing list: https://launchpad.net/~openlp-core Post to : openlp-core@lists.launchpad.net Unsubscribe : https://launchpad.net/~openlp-core More help : https://help.launchpad.net/ListHelp
[Openlp-core] [Bug 1209515] Re: getFileNames corrupts file names that use "special chars"
Philip, it seems to work now when using the given test script: [PyQt4.QtCore.QString(u'/home/user/#123.txt'), PyQt4.QtCore.QString(u'/home/user/diff')] -- You received this bug notification because you are a member of OpenLP Core, which is subscribed to OpenLP. https://bugs.launchpad.net/bugs/1209515 Title: getFileNames corrupts file names that use "special chars" Status in OpenLP: Fix Released Status in OpenLP 2.0 series: Fix Released Status in OpenLP trunk series: Fix Released Bug description: This is a little bit of a strange one. I have written a little script which demonstrates this (I'll include it when I get home). Here's the issue: Use QFileDialog.getFileNames() to select a single file with a special char in its name (a '#' will do it) and it returns the file name & path correctly. Ie selecting a file called "#123.xml" returns a list with one item "#123.xml" However, use QFileDialog.getFileNames() to select multiple files with at lease one file with special char in its name (a '#' will do it) and it returns the file name & path incorrectly. Ie selecting a file called "#123.xml" and a file called "abc.xml" returns a list with two items "%23123.xml" & "abc.xml" (Note the # has been changed in to a %23. Possible url encoding?) When we come to open the file, Python cannot find the file "%23123.xml" because it does not exist. This seams to be a Qt bug (I've done a few searches, but found nothing) but we could at least make some effort to see if the file actually exists before trying to open it! Reported here: http://support.openlp.org/issues/2056 and here: http://support.openlp.org/issues/1964 To manage notifications about this bug go to: https://bugs.launchpad.net/openlp/+bug/1209515/+subscriptions ___ Mailing list: https://launchpad.net/~openlp-core Post to : openlp-core@lists.launchpad.net Unsubscribe : https://launchpad.net/~openlp-core More help : https://help.launchpad.net/ListHelp
[Openlp-core] [Bug 1209515] Re: getFileNames corrupts file names that use special chars
** Changed in: openlp/trunk Status: Fix Committed = Fix Released -- You received this bug notification because you are a member of OpenLP Core, which is subscribed to OpenLP. https://bugs.launchpad.net/bugs/1209515 Title: getFileNames corrupts file names that use special chars Status in OpenLP - Worship Presentation Software: Fix Released Status in OpenLP 2.0 series: Fix Released Status in OpenLP trunk series: Fix Released Bug description: This is a little bit of a strange one. I have written a little script which demonstrates this (I'll include it when I get home). Here's the issue: Use QFileDialog.getFileNames() to select a single file with a special char in its name (a '#' will do it) and it returns the file name path correctly. Ie selecting a file called #123.xml returns a list with one item #123.xml However, use QFileDialog.getFileNames() to select multiple files with at lease one file with special char in its name (a '#' will do it) and it returns the file name path incorrectly. Ie selecting a file called #123.xml and a file called abc.xml returns a list with two items %23123.xml abc.xml (Note the # has been changed in to a %23. Possible url encoding?) When we come to open the file, Python cannot find the file %23123.xml because it does not exist. This seams to be a Qt bug (I've done a few searches, but found nothing) but we could at least make some effort to see if the file actually exists before trying to open it! Reported here: http://support.openlp.org/issues/2056 and here: http://support.openlp.org/issues/1964 To manage notifications about this bug go to: https://bugs.launchpad.net/openlp/+bug/1209515/+subscriptions ___ Mailing list: https://launchpad.net/~openlp-core Post to : openlp-core@lists.launchpad.net Unsubscribe : https://launchpad.net/~openlp-core More help : https://help.launchpad.net/ListHelp
[Openlp-core] [Bug 1209515] Re: getFileNames corrupts file names that use special chars
** Changed in: openlp/trunk Status: In Progress = Fix Committed -- You received this bug notification because you are a member of OpenLP Core, which is subscribed to OpenLP. https://bugs.launchpad.net/bugs/1209515 Title: getFileNames corrupts file names that use special chars Status in OpenLP - Worship Presentation Software: Fix Committed Status in OpenLP 2.0 series: Fix Released Status in OpenLP trunk series: Fix Committed Bug description: This is a little bit of a strange one. I have written a little script which demonstrates this (I'll include it when I get home). Here's the issue: Use QFileDialog.getFileNames() to select a single file with a special char in its name (a '#' will do it) and it returns the file name path correctly. Ie selecting a file called #123.xml returns a list with one item #123.xml However, use QFileDialog.getFileNames() to select multiple files with at lease one file with special char in its name (a '#' will do it) and it returns the file name path incorrectly. Ie selecting a file called #123.xml and a file called abc.xml returns a list with two items %23123.xml abc.xml (Note the # has been changed in to a %23. Possible url encoding?) When we come to open the file, Python cannot find the file %23123.xml because it does not exist. This seams to be a Qt bug (I've done a few searches, but found nothing) but we could at least make some effort to see if the file actually exists before trying to open it! Reported here: http://support.openlp.org/issues/2056 and here: http://support.openlp.org/issues/1964 To manage notifications about this bug go to: https://bugs.launchpad.net/openlp/+bug/1209515/+subscriptions ___ Mailing list: https://launchpad.net/~openlp-core Post to : openlp-core@lists.launchpad.net Unsubscribe : https://launchpad.net/~openlp-core More help : https://help.launchpad.net/ListHelp
[Openlp-core] [Bug 1209515] Re: getFileNames corrupts file names that use special chars
** Changed in: openlp/2.0 Status: Fix Committed = Fix Released -- You received this bug notification because you are a member of OpenLP Core, which is subscribed to OpenLP. https://bugs.launchpad.net/bugs/1209515 Title: getFileNames corrupts file names that use special chars Status in OpenLP - Worship Presentation Software: In Progress Status in OpenLP 2.0 series: Fix Released Status in OpenLP trunk series: In Progress Bug description: This is a little bit of a strange one. I have written a little script which demonstrates this (I'll include it when I get home). Here's the issue: Use QFileDialog.getFileNames() to select a single file with a special char in its name (a '#' will do it) and it returns the file name path correctly. Ie selecting a file called #123.xml returns a list with one item #123.xml However, use QFileDialog.getFileNames() to select multiple files with at lease one file with special char in its name (a '#' will do it) and it returns the file name path incorrectly. Ie selecting a file called #123.xml and a file called abc.xml returns a list with two items %23123.xml abc.xml (Note the # has been changed in to a %23. Possible url encoding?) When we come to open the file, Python cannot find the file %23123.xml because it does not exist. This seams to be a Qt bug (I've done a few searches, but found nothing) but we could at least make some effort to see if the file actually exists before trying to open it! Reported here: http://support.openlp.org/issues/2056 and here: http://support.openlp.org/issues/1964 To manage notifications about this bug go to: https://bugs.launchpad.net/openlp/+bug/1209515/+subscriptions ___ Mailing list: https://launchpad.net/~openlp-core Post to : openlp-core@lists.launchpad.net Unsubscribe : https://launchpad.net/~openlp-core More help : https://help.launchpad.net/ListHelp
[Openlp-core] [Bug 1209515] Re: getFileNames corrupts file names that use special chars
** Branch linked: lp:~phill-ridout/openlp/bug1209515 ** Changed in: openlp/trunk Status: New = In Progress ** Changed in: openlp/trunk Importance: Undecided = Medium ** Changed in: openlp/trunk Assignee: (unassigned) = Phill (phill-ridout) -- You received this bug notification because you are a member of OpenLP Core, which is subscribed to OpenLP. https://bugs.launchpad.net/bugs/1209515 Title: getFileNames corrupts file names that use special chars Status in OpenLP - Worship Presentation Software: In Progress Status in OpenLP 2.0 series: Fix Committed Status in OpenLP trunk series: In Progress Bug description: This is a little bit of a strange one. I have written a little script which demonstrates this (I'll include it when I get home). Here's the issue: Use QFileDialog.getFileNames() to select a single file with a special char in its name (a '#' will do it) and it returns the file name path correctly. Ie selecting a file called #123.xml returns a list with one item #123.xml However, use QFileDialog.getFileNames() to select multiple files with at lease one file with special char in its name (a '#' will do it) and it returns the file name path incorrectly. Ie selecting a file called #123.xml and a file called abc.xml returns a list with two items %23123.xml abc.xml (Note the # has been changed in to a %23. Possible url encoding?) When we come to open the file, Python cannot find the file %23123.xml because it does not exist. This seams to be a Qt bug (I've done a few searches, but found nothing) but we could at least make some effort to see if the file actually exists before trying to open it! Reported here: http://support.openlp.org/issues/2056 and here: http://support.openlp.org/issues/1964 To manage notifications about this bug go to: https://bugs.launchpad.net/openlp/+bug/1209515/+subscriptions ___ Mailing list: https://launchpad.net/~openlp-core Post to : openlp-core@lists.launchpad.net Unsubscribe : https://launchpad.net/~openlp-core More help : https://help.launchpad.net/ListHelp
[Openlp-core] [Bug 1209515] Re: getFileNames corrupts file names that use special chars
** Branch linked: lp:openlp/2.0 -- You received this bug notification because you are a member of OpenLP Core, which is subscribed to OpenLP. https://bugs.launchpad.net/bugs/1209515 Title: getFileNames corrupts file names that use special chars Status in OpenLP - Worship Presentation Software: New Status in OpenLP 2.0 series: Fix Committed Status in OpenLP trunk series: New Bug description: This is a little bit of a strange one. I have written a little script which demonstrates this (I'll include it when I get home). Here's the issue: Use QFileDialog.getFileNames() to select a single file with a special char in its name (a '#' will do it) and it returns the file name path correctly. Ie selecting a file called #123.xml returns a list with one item #123.xml However, use QFileDialog.getFileNames() to select multiple files with at lease one file with special char in its name (a '#' will do it) and it returns the file name path incorrectly. Ie selecting a file called #123.xml and a file called abc.xml returns a list with two items %23123.xml abc.xml (Note the # has been changed in to a %23. Possible url encoding?) When we come to open the file, Python cannot find the file %23123.xml because it does not exist. This seams to be a Qt bug (I've done a few searches, but found nothing) but we could at least make some effort to see if the file actually exists before trying to open it! Reported here: http://support.openlp.org/issues/2056 and here: http://support.openlp.org/issues/1964 To manage notifications about this bug go to: https://bugs.launchpad.net/openlp/+bug/1209515/+subscriptions ___ Mailing list: https://launchpad.net/~openlp-core Post to : openlp-core@lists.launchpad.net Unsubscribe : https://launchpad.net/~openlp-core More help : https://help.launchpad.net/ListHelp
[Openlp-core] [Bug 1209515] Re: getFileNames corrupts file names that use special chars
** Changed in: openlp/2.0 Status: In Progress = Fix Committed -- You received this bug notification because you are a member of OpenLP Core, which is subscribed to OpenLP. https://bugs.launchpad.net/bugs/1209515 Title: getFileNames corrupts file names that use special chars Status in OpenLP - Worship Presentation Software: New Status in OpenLP 2.0 series: Fix Committed Status in OpenLP trunk series: New Bug description: This is a little bit of a strange one. I have written a little script which demonstrates this (I'll include it when I get home). Here's the issue: Use QFileDialog.getFileNames() to select a single file with a special char in its name (a '#' will do it) and it returns the file name path correctly. Ie selecting a file called #123.xml returns a list with one item #123.xml However, use QFileDialog.getFileNames() to select multiple files with at lease one file with special char in its name (a '#' will do it) and it returns the file name path incorrectly. Ie selecting a file called #123.xml and a file called abc.xml returns a list with two items %23123.xml abc.xml (Note the # has been changed in to a %23. Possible url encoding?) When we come to open the file, Python cannot find the file %23123.xml because it does not exist. This seams to be a Qt bug (I've done a few searches, but found nothing) but we could at least make some effort to see if the file actually exists before trying to open it! Reported here: http://support.openlp.org/issues/2056 and here: http://support.openlp.org/issues/1964 To manage notifications about this bug go to: https://bugs.launchpad.net/openlp/+bug/1209515/+subscriptions ___ Mailing list: https://launchpad.net/~openlp-core Post to : openlp-core@lists.launchpad.net Unsubscribe : https://launchpad.net/~openlp-core More help : https://help.launchpad.net/ListHelp
[Openlp-core] [Bug 1209515] Re: getFileNames corrupts file names that use special chars
Reported to Qt: https://bugreports.qt-project.org/browse/QTBUG-32897 ** Branch linked: lp:~phill-ridout/openlp/1209515_2.0 ** Changed in: openlp/2.0 Assignee: (unassigned) = Phill (phill-ridout) ** Changed in: openlp/2.0 Status: Confirmed = In Progress -- You received this bug notification because you are a member of OpenLP Core, which is subscribed to OpenLP. https://bugs.launchpad.net/bugs/1209515 Title: getFileNames corrupts file names that use special chars Status in OpenLP - Worship Presentation Software: New Status in OpenLP 2.0 series: In Progress Status in OpenLP trunk series: New Bug description: This is a little bit of a strange one. I have written a little script which demonstrates this (I'll include it when I get home). Here's the issue: Use QFileDialog.getFileNames() to select a single file with a special char in its name (a '#' will do it) and it returns the file name path correctly. Ie selecting a file called #123.xml returns a list with one item #123.xml However, use QFileDialog.getFileNames() to select multiple files with at lease one file with special char in its name (a '#' will do it) and it returns the file name path incorrectly. Ie selecting a file called #123.xml and a file called abc.xml returns a list with two items %23123.xml abc.xml (Note the # has been changed in to a %23. Possible url encoding?) When we come to open the file, Python cannot find the file %23123.xml because it does not exist. This seams to be a Qt bug (I've done a few searches, but found nothing) but we could at least make some effort to see if the file actually exists before trying to open it! Reported here: http://support.openlp.org/issues/2056 and here: http://support.openlp.org/issues/1964 To manage notifications about this bug go to: https://bugs.launchpad.net/openlp/+bug/1209515/+subscriptions ___ Mailing list: https://launchpad.net/~openlp-core Post to : openlp-core@lists.launchpad.net Unsubscribe : https://launchpad.net/~openlp-core More help : https://help.launchpad.net/ListHelp
[Openlp-core] [Bug 1209515] Re: getFileNames corrupts file names that use special chars
I would suggest we try to decode each of the files. -- You received this bug notification because you are a member of OpenLP Core, which is subscribed to OpenLP. https://bugs.launchpad.net/bugs/1209515 Title: getFileNames corrupts file names that use special chars Status in OpenLP - Worship Presentation Software: New Status in OpenLP 2.0 series: Confirmed Status in OpenLP trunk series: New Bug description: This is a little bit of a strange one. I have written a little script which demonstrates this (I'll include it when I get home). Here's the issue: Use QFileDialog.getFileNames() to select a single file with a special char in its name (a '#' will do it) and it returns the file name path correctly. Ie selecting a file called #123.xml returns a list with one item #123.xml However, use QFileDialog.getFileNames() to select multiple files with at lease one file with special char in its name (a '#' will do it) and it returns the file name path incorrectly. Ie selecting a file called #123.xml and a file called abc.xml returns a list with two items %23123.xml abc.xml (Note the # has been changed in to a %23. Possible url encoding?) When we come to open the file, Python cannot find the file %23123.xml because it does not exist. This seams to be a Qt bug (I've done a few searches, but found nothing) but we could at least make some effort to see if the file actually exists before trying to open it! Reported here: http://support.openlp.org/issues/2056 and here: http://support.openlp.org/issues/1964 To manage notifications about this bug go to: https://bugs.launchpad.net/openlp/+bug/1209515/+subscriptions ___ Mailing list: https://launchpad.net/~openlp-core Post to : openlp-core@lists.launchpad.net Unsubscribe : https://launchpad.net/~openlp-core More help : https://help.launchpad.net/ListHelp
[Openlp-core] [Bug 1209515] Re: getFileNames corrupts file names that use special chars
See: http://pastebin.com/QcmkNcSk for example code -- You received this bug notification because you are a member of OpenLP Core, which is subscribed to OpenLP. https://bugs.launchpad.net/bugs/1209515 Title: getFileNames corrupts file names that use special chars Status in OpenLP - Worship Presentation Software: New Status in OpenLP 2.0 series: Confirmed Status in OpenLP trunk series: New Bug description: This is a little bit of a strange one. I have written a little script which demonstrates this (I'll include it when I get home). Here's the issue: Use QFileDialog.getFileNames() to select a single file with a special char in its name (a '#' will do it) and it returns the file name path correctly. Ie selecting a file called #123.xml returns a list with one item #123.xml However, use QFileDialog.getFileNames() to select multiple files with at lease one file with special char in its name (a '#' will do it) and it returns the file name path incorrectly. Ie selecting a file called #123.xml and a file called abc.xml returns a list with two items %23123.xml abc.xml (Note the # has been changed in to a %23. Possible url encoding?) When we come to open the file, Python cannot find the file %23123.xml because it does not exist. This seams to be a Qt bug (I've done a few searches, but found nothing) but we could at least make some effort to see if the file actually exists before trying to open it! Reported here: http://support.openlp.org/issues/2056 and here: http://support.openlp.org/issues/1964 To manage notifications about this bug go to: https://bugs.launchpad.net/openlp/+bug/1209515/+subscriptions ___ Mailing list: https://launchpad.net/~openlp-core Post to : openlp-core@lists.launchpad.net Unsubscribe : https://launchpad.net/~openlp-core More help : https://help.launchpad.net/ListHelp