[issue2729] hg diff works bad with utf8 encoded files

magicprinc bugs at mercurial.selenic.com
Sat Mar 26 15:07:20 UTC 2011


New submission from magicprinc <magicode at mail.ru>:

Two similar files in repo: one US-ASCII only, other with russian characters.
But "hg diff" shows us-ascii file as first class citizen and one line from
utf8 file.

Windows (chcp 65001 for utf8 in console), hg 1.8.1
C:\TEMP\testhgutf8>hg diff
diff -r 0571c11cfe81 eng.txt
--- a/eng.txt   Sat Mar 26 17:31:47 2011 +0300
+++ b/eng.txt   Sat Mar 26 18:03:45 2011 +0300
@@ -1,3 +1,4 @@
+Header
 one
 two
 three
diff -r 0571c11cfe81 rus.utf8.txt
--- a/rus.utf8.txt      Sat Mar 26 17:31:47 2011 +0300
+++ b/rus.utf8.txt      Sat Mar 26 18:03:45 2011 +0300
@@ -1,3 +1,4 @@
+Header
 один

----------
files: testhgutf8.zip
messages: 15833
nosy: magicprinc
priority: bug
status: unread
title: hg diff works bad with utf8 encoded files

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2729>
____________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testhgutf8.zip
Type: application/zip
Size: 4150 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20110326/ed0c5431/attachment-0001.zip>


More information about the Mercurial-devel mailing list