Commits

Arne Babenhauserheide  committed c14a10a

more unicode fixes

  • Participants
  • Parent commits a9c5a11

Comments (0)

Files changed (1)

         assumed to exist already.
         """
         if user == u'me':
-            return self.user
+            return unicode(self.user)
         if user == u'Nobody':
             return u''
         users = self._users_list().keys()
                     raise AmbiguousUser(user,matched)
                 if len(matched) == 0:
                     raise UnknownUser(user)
-                user = matched[0]
+                user = unicode(matched[0])
             if user == u'Nobody': # needed twice, since users can also type a prefix to get it
                 return u''
         return user
         Using the -f flag will create a new user with that exact name,
 		it will not try to guess, or warn the user."""
         task = self[prefix]
+        prefix = unicode(prefix)
         user = self._get_user(user,force)
         task[u'owner'] = user
         if user == u'':
         os.chdir(path) 
         bd = BugsDict(bugsdir,user)
         if cmd == u'add':
-            ui.write(bd.add(text).encode("utf-8")+'\n')
+            ui.write(bd.add(text)+'\n')
             bd.write()
         elif cmd == u'rename':
             bd.rename(id, subtext)
             bd.write()
         elif cmd == u'users':
-            ui.write(bd.users().encode("utf-8")+'\n')
+            ui.write(bd.users()+'\n')
         elif cmd == u'assign':
-            ui.write(bd.assign(id, subtext, opts[u'force']).encode("utf-8")+'\n')
+            ui.write(bd.assign(id, subtext, opts[u'force'])+'\n')
             bd.write()
         elif cmd == u'details':
             ui.write(bd.details(id).encode("utf-8")+'\n')
         elif cmd == u'list' or cmd == u'':
             ui.write(bd.list(not opts[u'resolved'], opts[u'owner'], opts[u'grep']).encode("utf-8")+'\n')
         elif cmd == u'id':
-            ui.write(bd.id(id).encode("utf-8")+'\n')
+            ui.write(bd.id(id)+'\n')
         elif cmd == u'version':
             ui.write(version+'\n')
         else: