Previously, when submodule commit headings contained non-latin-1
characters, they were displayed incorrectly in gitk, because $line was
not properly decoded, for example:
----------------------------- Documentation/Dokko -----------------------------
Submodule Documentation/Dokko
2ca20c7..
0ea204d:
> Π
\9fΡ
\80ΠΎΡ
\82ΠΎΠΊΠΎΠ»Ρ
\8b Ρ
\81ΠΎΠΏΡ
\80Ρ
\8fΠΆΠ΅Π½ΠΈΡ
\8f Π
\98Π
\9cΠ‘ "Π
\9cΠΎΡ
\81Ρ
\82ΠΈΠΊ-21631" (Π
\9bΠ
\982 ΠΈ Π‘Π°Π½Π΄Π°Π»)
> hardware: Π΄ΠΎΠΊΡ
\83ΠΌΠ΅Π½Ρ
\82Π°Ρ
\86ΠΈΡ
\8f Π½Π° InnoDisk SATA 10000
> hardware: Π΄ΠΎΠΊΡ
\83ΠΌΠ΅Π½Ρ
\82Π°Ρ
\86ΠΈΡ
\8f Π½Π° IEI PCISA-6770E2 v3.0
> hardware: Π΄ΠΎΠΊΡ
\83ΠΌΠ΅Π½Ρ
\82Π°Ρ
\86ΠΈΡ
\8f Π½Π° Fastwel NIB941
> hardware: Π΄ΠΎΠΊΡ
\83ΠΌΠ΅Π½Ρ
\82Π°Ρ
\86ΠΈΡ
\8f Π½Π° IEI IPX-9S
> hardware: Π΄ΠΎΠΊΡ
\83ΠΌΠ΅Π½Ρ
\82Π°Ρ
\86ΠΈΡ
\8f Π½Π° Hirschmann 5TX-EEC
instead of
----------------------------- Documentation/Dokko -----------------------------
Submodule Documentation/Dokko
2ca20c7..
0ea204d:
> ΠΡΠΎΡΠΎΠΊΠΎΠ»Ρ ΡΠΎΠΏΡΡΠΆΠ΅Π½ΠΈΡ ΠΠΠ‘ "ΠΠΎΡΡΠΈΠΊ-21631" (ΠΠ2 ΠΈ Π‘Π°Π½Π΄Π°Π»)
> hardware: Π΄ΠΎΠΊΡΠΌΠ΅Π½ΡΠ°ΡΠΈΡ Π½Π° InnoDisk SATA 10000
> hardware: Π΄ΠΎΠΊΡΠΌΠ΅Π½ΡΠ°ΡΠΈΡ Π½Π° IEI PCISA-6770E2 v3.0
> hardware: Π΄ΠΎΠΊΡΠΌΠ΅Π½ΡΠ°ΡΠΈΡ Π½Π° Fastwel NIB941
> hardware: Π΄ΠΎΠΊΡΠΌΠ΅Π½ΡΠ°ΡΠΈΡ Π½Π° IEI IPX-9S
> hardware: Π΄ΠΎΠΊΡΠΌΠ΅Π½ΡΠ°ΡΠΈΡ Π½Π° Hirschmann 5TX-EEC
This fixes it.
Signed-off-by: Kirill Smelkov <kirr@landau.phys.spbu.ru>
Signed-off-by: Paul Mackerras <paulus@samba.org>
makediffhdr $fname $ids
$ctext insert end "\n$line\n" filesep
} elseif {![string compare -length 3 " >" $line]} {
+ set line [encoding convertfrom $diffencoding $line]
$ctext insert end "$line\n" dresult
} elseif {![string compare -length 3 " <" $line]} {
+ set line [encoding convertfrom $diffencoding $line]
$ctext insert end "$line\n" d0
} elseif {$diffinhdr} {
if {![string compare -length 12 "rename from " $line]} {