openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #21949
[Bug 1012110] Re: pptviewlib does not accept unicode filename
I can replicate this on Windows XP using the char 'ø' see:
http://support.openlp.org/issues/2087
** Changed in: openlp
Status: Expired => In Progress
** Changed in: openlp
Assignee: (unassigned) => Phill (phill-ridout)
** Changed in: openlp
Milestone: None => 2.0.4
** Tags added: support-system
** Also affects: openlp/2.0
Importance: Undecided
Status: New
** Also affects: openlp/trunk
Importance: Low
Assignee: Phill (phill-ridout)
Status: 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/1012110
Title:
pptviewlib does not accept unicode filename
Status in OpenLP - Worship Presentation Software:
In Progress
Status in OpenLP 2.0 series:
New
Status in OpenLP trunk series:
In Progress
Bug description:
If PowerPoint Viewer is being used by presentation plugin, loading a
presentation file whose filename/path contains unicode (non-ASCII)
characters causes a traceback:
--- Exception Traceback ---
Traceback (most recent call last):
File "D:\OpenLP_Code\release-1.9.9\build\pyi.win32\OpenLP\outPYZ1.pyz\openlp.core.lib.mediamanageritem", line 342, in onFileClick
File "D:\OpenLP_Code\release-1.9.9\build\pyi.win32\OpenLP\outPYZ1.pyz\openlp.core.lib.mediamanageritem", line 396, in validateAndLoad
File "D:\OpenLP_Code\release-1.9.9\build\pyi.win32\OpenLP\outPYZ1.pyz\openlp.plugins.presentations.lib.mediaitem", line 194, in loadList
File "D:\OpenLP_Code\release-1.9.9\build\pyi.win32\OpenLP\outPYZ1.pyz\openlp.plugins.presentations.lib.pptviewcontroller", line 128, in load_presentation
UnicodeEncodeError: 'ascii' codec can't encode characters in position 60-61: ordinal not in range(128)
Line 128 in load_presentation in pptviewcontroller uses str() on the
filepath. This is due to a limitation of the C/C++ pptviewlib. It's
OpenPPT function takes a *filename argument of type char. Thus it is
unable to deal with unicode strings.
see http://www.support.openlp.org/issues/724
[WinXP SP3, OpenLP 1.9.9]
To manage notifications about this bug go to:
https://bugs.launchpad.net/openlp/+bug/1012110/+subscriptions
References