Commits

Anonymous committed 69f1243

commit: accept commit message in multibyte charset

Comments (0)

Files changed (1)

 from gtools import cmdtable
 from status import GStatus
 from hgcmd import CmdDialog
+from hglib import fromutf
 
 class GCommit(GStatus):
     """GTK+ based dialog for displaying repository status and committing changes.
         cmdline  = ["hg", "commit", "--verbose", "--repository", self.repo.root]
         if self.opts['addremove']:
             cmdline += ['--addremove']
-        cmdline += ['--message', self.opts['message']]
+        cmdline += ['--message', fromutf(self.opts['message'])]
         cmdline += [self.repo.wjoin(x) for x in files]
         dialog = CmdDialog(cmdline, True)
         dialog.set_transient_for(self)