Saving theme with unicode letters in the name causes traceback

Bug #1438563 reported by Tomas Groth
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenLP
Fix Released
Medium
Tomas Groth

Bug Description

Found on windows in current trunk (2524 ~ beta3)
Create/copy/rename a theme, enter a name which contains special characters, eg "test 愛 theme", and this traceback occurs:

Traceback (most recent call last):
  File "<string>", line 44, in <module>
  File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\core\__init__.py", line 377, in main
  File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\core\__init__.py", line 142, in run
  File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\core\common\registry.py", line 137, in execute
  File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\core\ui\thememanager.py", line 144, in bootstrap_initialise
  File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\core\ui\thememanager.py", line 448, in load_first_time_themes
  File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\core\ui\thememanager.py", line 649, in _write_theme
UnicodeEncodeError: 'cp950' codec can't encode character '\u8ba4' in position 74: illegal multibyte sequence

Related branches

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

Other bug subscribers

Remote bug watches

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