source: pkg/viola/main/kde-guidance/trunk/debian/patches/kubuntu_22_userconfig_utf8.patch @ 3444

Revision 3444, 1.0 KB checked in by alanbach-guest, 5 years ago (diff)
  • Sync'd with Ubuntu 0.8.0svn20080103-0ubuntu9
  • kde-guidance-0.8.0svn20080103

    diff -Nur -x '*.orig' -x '*~' kde-guidance-0.8.0svn20080103/userconfig/userconfig.py kde-guidance-0.8.0svn20080103.new/userconfig/userconfig.py
    old new  
    828828        else: excludegroups = [] 
    829829        for group in [g.getGroupname() for g in self.admincontext.getGroups()]: 
    830830                if group in excludegroups: continue 
    831                  # FIXME possible bug here because name is unicode and the str()'s used below might not be able to coerce a unicode group name into what we want 
    832831                if group in pn: 
    833                         name = i18n(str(pn[group])) 
     832                        name = i18n(unicode(pn[group]).encode(locale.getpreferredencoding())) 
    834833                        wid = self.privilegeslistview 
    835834                else: 
    836                         name = str(group) 
     835                        name = unicode(group).encode(locale.getpreferredencoding()) 
    837836                        wid = self.groupslistview 
    838837                self.secondarygroupcheckboxes[group] = QCheckListItem(wid,name,QCheckListItem.CheckBox) 
    839838 
Note: See TracBrowser for help on using the repository browser.