[gitg/gtk3] Disable auto-utf8 for repository loading



commit 44ceac4e8e2b570cf9ac3aa19fff3a6b92ad1c38
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date:   Fri Mar 25 14:18:52 2011 +0100

    Disable auto-utf8 for repository loading
    
    git already converts to utf-8 and having the double encoding will make things
    twice as slow due to unnecessary copies

 libgitg/gitg-repository.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libgitg/gitg-repository.c b/libgitg/gitg-repository.c
index 7a950d7..d9af1d3 100644
--- a/libgitg/gitg-repository.c
+++ b/libgitg/gitg-repository.c
@@ -1301,6 +1301,7 @@ gitg_repository_init (GitgRepository *object)
 	                                            (GDestroyNotify)free_refs);
 
 	object->priv->loader = gitg_shell_new (10000);
+	gitg_io_set_auto_utf8 (GITG_IO (object->priv->loader), FALSE);
 
 	g_signal_connect (object->priv->loader,
 	                  "update",



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]