@matheusbsbs / matheus-bagliano / commits / f75c8b319f
Fork 0

git-gui: Request blame metadata in utf-8.

The blame builtin now supports automatic conversion of metadata encoding. By default it is converted to the character set specified by i18n.logoutputencoding. Since gui blame expects the data in utf-8, it is necessary to specify the desired encoding directly. An old version of the blame command will simply ignore the option. Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Alexander Gavrilov committed Nov 9, 2008 at 18:53 UTC f75c8b319f5b448d8e7dc589ca581eec852a131e
1 file changed +1 -1
lib/blame.tcl
+1 -1
@@ -559,7 +559,7 @@ method _read_file {fd jump} {
559 } ifdeleted { catch {close $fd} }
560
561 method _exec_blame {cur_w cur_d options cur_s} {
562 - lappend options --incremental
562 + lappend options --incremental --encoding=utf-8
563 if {$commit eq {}} {
564 lappend options --contents $path
565 } else {