{"thread":{"id":"2031","subject":"[PATCH] gitk: use UTF-8 encoding","startedAt":"2005-10-06T02:12:48Z","lastAt":"2005-10-06T05:34:55Z","messageCount":4,"participants":["Pavel Roskin","Junio C Hamano","H. Peter Anvin"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"9749","messageId":"1128564768.32103.18.camel@dv","threadId":"2031","inReplyTo":null,"subject":"[PATCH] gitk: use UTF-8 encoding","fromName":"Pavel Roskin","fromEmail":"proski@gnu.org","sentAt":"2005-10-06T02:12:48Z","receivedAt":"2005-10-06T02:12:48Z","isPatch":true,"sender":{"key":"proski@gnu.org","avatar":null},"body":"gitk should try to use UTF-8 encoding for system operations, such as\nreading and writing files and git output.\n\nSigned-off-by: Pavel Roskin <proski@gnu.org>\n\ndiff --git a/gitk b/gitk\n--- a/gitk\n+++ b/gitk\n@@ -3726,6 +3726,7 @@ set colors {green red blue magenta darkg\n \n catch {source ~/.gitk}\n \n+catch {encoding system utf-8}\n set namefont $mainfont\n if {$boldnames} {\n     lappend namefont bold\n\n\n-- \nRegards,\nPavel Roskin\n"},{"id":"9753","messageId":"7vvf0b9t0d.fsf@assigned-by-dhcp.cox.net","threadId":"2031","inReplyTo":"1128564768.32103.18.camel@dv","subject":"Re: [PATCH] gitk: use UTF-8 encoding","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2005-10-06T04:19:46Z","receivedAt":"2005-10-06T04:19:46Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Pavel Roskin <proski@gnu.org> writes:\n\n> gitk should try to use UTF-8 encoding for system operations, such as\n> reading and writing files and git output.\n\nI agree about commit messages, but I am not so sure about the\nfile contents (aka user data).  Is it possible to control them\nseparately?\n"},{"id":"9754","messageId":"4344AF8A.1040504@zytor.com","threadId":"2031","inReplyTo":"7vvf0b9t0d.fsf@assigned-by-dhcp.cox.net","subject":"Re: [PATCH] gitk: use UTF-8 encoding","fromName":"H. Peter Anvin","fromEmail":"hpa@zytor.com","sentAt":"2005-10-06T05:00:58Z","receivedAt":"2005-10-06T05:00:58Z","isPatch":true,"sender":{"key":"hpa@zytor.com","avatar":null},"body":"Junio C Hamano wrote:\n> Pavel Roskin <proski@gnu.org> writes:\n> \n>>gitk should try to use UTF-8 encoding for system operations, such as\n>>reading and writing files and git output.\n> \n> I agree about commit messages, but I am not so sure about the\n> file contents (aka user data).  Is it possible to control them\n> separately?\n> \n\ngit needs to be able to treat user data as arbitrary binary blobs. \nHowever, if interpreting as text, UTF-8 is the right default, at least.\n\n\t-hpa\n"},{"id":"9756","messageId":"1128576895.31571.8.camel@dv","threadId":"2031","inReplyTo":"4344AF8A.1040504@zytor.com","subject":"Re: [PATCH] gitk: use UTF-8 encoding","fromName":"Pavel Roskin","fromEmail":"proski@gnu.org","sentAt":"2005-10-06T05:34:55Z","receivedAt":"2005-10-06T05:34:55Z","isPatch":true,"sender":{"key":"proski@gnu.org","avatar":null},"body":"On Wed, 2005-10-05 at 22:00 -0700, H. Peter Anvin wrote:\n> Junio C Hamano wrote:\n> > Pavel Roskin <proski@gnu.org> writes:\n> > \n> >>gitk should try to use UTF-8 encoding for system operations, such as\n> >>reading and writing files and git output.\n> > \n> > I agree about commit messages, but I am not so sure about the\n> > file contents (aka user data).  Is it possible to control them\n> > separately?\n\nYes.  \"encoding convertfrom\" should do the trick.  In some projects, \nthere may be files written in different encodings, such as gettext *.po\nfiles.  A patch updating several *.po files would have different parts\nin different encodings.\n\nI think gitk could have a submenu in the popup menu with the encodings\nto chose from.\n\n> git needs to be able to treat user data as arbitrary binary blobs. \n> However, if interpreting as text, UTF-8 is the right default, at least.\n\nI agree.\n\n-- \nRegards,\nPavel Roskin\n"}]}