Software crash when naming a new drawer with Chinese

Bug #1451101 reported by Samson Yeung
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Drawers
New
Undecided
Unassigned

Bug Description

When create a new drawer or edit settings, writing the Drawer Name in chinese will crash the application - the icon lost and the drawer cannot be started again until rename the Drawer and reset the icon path. i believe all 2 byte asian character will have the same problem. This problem has been there since the program first published.

Revision history for this message
小三 (yanzilisan183) wrote :

/opt/extras.ubuntu.com/drawers/drawers/Drawer.py
====================================================================================

声明起始部分添加:
import sys
reload(sys)
sys.setdefaultencoding('utf-8')

    def execute(self, value):
        ....
        #group='Desktop Action '+self.cleanname(value)
        group=u'Desktop Action '+self.cleanname(value) # 中文支持

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.