[gitg] Disable auto-utf8 for repository loading



commit d2c8b89ab4c09f6fc6bcf29ffe3a6fd0f93ee71c
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 4f7db71..7cde87c 100644
--- a/libgitg/gitg-repository.c
+++ b/libgitg/gitg-repository.c
@@ -1305,6 +1305,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]