Playing file with unicode chars in filename with VLC on windows causes traceback

Bug #1491998 reported by Tomas Groth
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenLP
Fix Released
Medium
Tomas Groth

Bug Description

First reported on the forum: http://forums.openlp.org/discussion/2715/unicode-causes-crash
Confirmed on windows 8.1.

The traceback:

Traceback (most recent call last):
File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\core\lib\mediamanageritem.py", line 490, in on_preview_click
File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\core\ui\slidecontroller.py", line 779, in add_service_item
File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\core\ui\slidecontroller.py", line 896, in _process_item
File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\core\ui\slidecontroller.py", line 1359, in on_media_start
File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\core\ui\media\mediacontroller.py", line 395, in video
File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\core\ui\media\mediacontroller.py", line 533, in _check_file_type
File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\core\ui\media\vlcplayer.py", line 199, in load
File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\core\ui\media\vendor\vlc.py", line 1536, in media_new_path
File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\core\ui\media\vendor\vlc.py", line 63, in str_to_bytes
UnicodeEncodeError: 'mbcs' codec can't encode characters in position 0--1: invalid character

Related branches

Tomas Groth (tomasgroth)
Changed in openlp:
status: Confirmed → In Progress
Tomas Groth (tomasgroth)
Changed in openlp:
status: In Progress → Fix Committed
Tim Bentley (trb143)
Changed in openlp:
status: Fix Committed → Fix Released
milestone: none → 2.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.