← Back to team overview

openlp-core team mailing list archive

[Bug 1012110] Re: pptviewlib does not accept unicode filename

 

** 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/1012110

Title:
  pptviewlib does not accept unicode filename

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:
  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