Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.4rc2, 0.4rc3, and 0.4rc4

hggtk/status: fix display error of multi-byte text and filenames

Looks like courier font can't handle multi-byte characters,
specifically Chinese (and many other Asian languages?),
which triggered this bugfix.

Changeset 66736cfd76fe

Parent 4aa359b291c0

by TK Soh

Changes to 2 files · Browse files at 66736cfd76fe Showing diff from parent 4aa359b291c0 Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​gdialog.py Stacked
 
173
174
175
176
177
178
 
 
 
179
180
181
 
173
174
175
 
 
 
176
177
178
179
180
181
@@ -173,9 +173,9 @@
    def _parse_config(self):   # defaults - self.fontcomment = 'courier 10' - self.fontdiff = 'courier 10' - self.fontlist = 'courier 9' + self.fontcomment = 'monospace 10' + self.fontdiff = 'monospace 10' + self.fontlist = 'monospace 9'   self.diffopts = ''   self.diffcmd = ''   self.diffbottom = ''
Change 1 of 1 Show Entire File hggtk/​status.py Stacked
 
473
474
475
476
 
477
478
479
 
473
474
475
 
476
477
478
479
@@ -473,7 +473,7 @@
  difftext.seek(0)   iter = buffer.get_start_iter()   for line in difftext: - line = util.fromlocal(line) + line = toutf(line)   if line.startswith('---') or line.startswith('+++'):   buffer.insert_with_tags_by_name(iter, line, 'header')   elif line.startswith('-'):