Bugs item #1937966, was opened at 2008-04-09 00:43
Message generated for change (Comment added) made by tksoh
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=968354&aid=1937966&group_id=199155

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: dialogs
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Wagner Bruna (wagnerbruna)
Assigned to: Nobody/Anonymous (nobody)
Summary: Changelog: utf8 messages handled incorrectly

Initial Comment:
TortoiseHg version: 0.4 RC1
hg version: 0.9.5
system: Debian Etch

Commit messages with utf8 characters are handled incorrectly by the changeset 
browser. The commit message is reported correctly on the changeset viewer, but 
it is wrong on the changeset list. The diff itself is also incorrect.

See screenshot and repository bundle attached. The repository was made like 
this:

/tmp$ hg init test
/tmp$ cd test
/tmp/test$ echo 'áéíóú' > test.txt
/tmp/test$ hg ci -Am 'áéíóú'
adding test.txt
/tmp/test$ hg log -p
changeset:   0:7b5953603fc0
tag:         tip
user:        [EMAIL PROTECTED]
date:        Tue Apr 08 13:09:50 2008 -0300
summary:     áéíóú

diff -r 000000000000 -r 7b5953603fc0 test.txt
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/test.txt  Tue Apr 08 13:09:50 2008 -0300
@@ -0,0 +1,1 @@
+áéíóú

/tmp/test$ echo $LANG
pt_BR.UTF-8

I'm running TortoiseHg from sources, via hgtk script.

Thanks,
Wagner


----------------------------------------------------------------------

>Comment By: TK Soh (tksoh)
Date: 2008-04-10 09:33

Message:
Logged In: YES 
user_id=411637
Originator: NO

On my XP box (see attached snapshot, tksoh_utf8_log.png), both the summary
text and description field of the diff window are displayed correctly as
"áéíóú". Only the content of test.txt in the diff chunks are displayed
wrongly, which require fixing.

I wonder what's causing the discrepancy between your system and mine.
File Added: tksoh_utf8_log.PNG

----------------------------------------------------------------------

Comment By: Wagner Bruna (wagnerbruna)
Date: 2008-04-10 02:44

Message:
Logged In: YES 
user_id=2057939
Originator: YES

FYI, on my system this bug is actually a regression.

The summary column is displayed correctly on TortoiseHg revision
20d428b65e03, but wrongly on 65a7ba2dffc3 (this revision fixed bug
1914550).

The file diff displays correctly at 3d24edb9ab2d, and wrongly at
737c58ecc790 (also an encoding fix). 


----------------------------------------------------------------------

Comment By: Wagner Bruna (wagnerbruna)
Date: 2008-04-10 01:25

Message:
Logged In: YES 
user_id=2057939
Originator: YES

The test.hg file is a Mercurial full bundle.

The diff viewer (lower right panel) displays the commit message correctly,
as "áéíóú". But the "summary" column on the changeset list (upper
panel) displays something like "áéíóú" (looks much like utf8
data read as iso-8859-1 characters). The same "áéíóú"
characters are shown on the test.txt diff itself.


----------------------------------------------------------------------

Comment By: . (qwelnor)
Date: 2008-04-09 16:13

Message:
Logged In: YES 
user_id=764770
Originator: NO

The same problem as described on top appears on windows xp sp2.

----------------------------------------------------------------------

Comment By: TK Soh (tksoh)
Date: 2008-04-09 10:42

Message:
Logged In: YES 
user_id=411637
Originator: NO

I am confused by "The commit message is reported correctly on the
changeset viewer, but it is wrong on the changeset list". Can you please
help elaborate?

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2008-04-09 10:27

Message:
Logged In: NO 

What's the format of the attached repo.hg file? Bundle?

----------------------------------------------------------------------

Comment By: Wagner Bruna (wagnerbruna)
Date: 2008-04-09 00:44

Message:
Logged In: YES 
user_id=2057939
Originator: YES

File Added: test.hg

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=968354&aid=1937966&group_id=199155

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to