Mercurial > pidgin.yaz
changeset 2596:35c23df11d16
[gaim-migrate @ 2609]
cvs commit
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 24 Oct 2001 08:48:05 +0000 |
parents | 04a5f68f640c |
children | 2ced57c58653 |
files | src/core.c src/gtkimhtml.c src/util.c |
diffstat | 3 files changed, 10 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/core.c Wed Oct 24 08:35:55 2001 +0000 +++ b/src/core.c Wed Oct 24 08:48:05 2001 +0000 @@ -35,6 +35,7 @@ #include <signal.h> #include <getopt.h> #include <stdarg.h> +#include <string.h> #include "gaim.h"
--- a/src/gtkimhtml.c Wed Oct 24 08:35:55 2001 +0000 +++ b/src/gtkimhtml.c Wed Oct 24 08:48:05 2001 +0000 @@ -86,17 +86,18 @@ gchar **image; }; -static gchar* getcharset() +static gchar* +getcharset () { - static gchar charset[64]; + static gchar charset [64]; #ifdef HAVE_LANGINFO_CODESET - gchar *ch = nl_langinfo(CODESET); - if (strncasecmp(ch, "iso-", 4) == 0) - g_snprintf(charset, sizeof(charset), "iso%s", ch + 4); + gchar *ch = nl_langinfo (CODESET); + if (!g_strncasecmp (ch, "iso-", 4)) + g_snprintf (charset, sizeof (charset), "iso%s", ch + 4); else - g_snprintf(charset, sizeof(charset), ch); + g_snprintf (charset, sizeof (charset), ch); #else - g_snprintf(charset, sizeof(charset), "iso8859-*"); + g_snprintf (charset, sizeof (charset), "iso8859-*"); #endif return charset; }