Software crash when naming a new drawer with Chinese
Bug #1451101 reported by
Samson Yeung
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.
To post a comment you must log in.
/opt/extras. ubuntu. com/drawers/ drawers/ Drawer. py ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= =======
=======
声明起始部分添加: ncoding( 'utf-8' )
import sys
reload(sys)
sys.setdefaulte
def execute(self, value):
#group= 'Desktop Action '+self. cleanname( value)
group= u'Desktop Action '+self. cleanname( value) # 中文支持
....