[libgit2-glib] Fix check for UTF-8 encoding in convert
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib] Fix check for UTF-8 encoding in convert
- Date: Mon, 8 Jul 2013 05:49:51 +0000 (UTC)
commit a6388082231be4d749dfb88effbc14f3576ea78c
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Mon Jul 8 07:48:08 2013 +0200
Fix check for UTF-8 encoding in convert
libgit2-glib/ggit-convert.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgit2-glib/ggit-convert.c b/libgit2-glib/ggit-convert.c
index 216a02b..9540f0d 100644
--- a/libgit2-glib/ggit-convert.c
+++ b/libgit2-glib/ggit-convert.c
@@ -126,7 +126,7 @@ ggit_convert_utf8 (const gchar *str,
}
if (from_charset != NULL &&
- g_ascii_strcasecmp (from_charset, "UTF-8"))
+ g_ascii_strcasecmp (from_charset, "UTF-8") == 0)
{
gchar *ret = g_strndup (str, size);
utf8_validate_fallback (ret, size);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]