Mercurial > pidgin
diff libpurple/dnsquery.c @ 21862:ae58ffd5e929
Create a purple_gai_strerror() function similar to g_str_error() which
calls gai_strerror() then tries to convert the result into UTF-8. I
believe this fixes #3003
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Tue, 18 Dec 2007 08:42:41 +0000 |
| parents | 35b4f1dc4c8d |
| children | c38d72677c8a |
line wrap: on
line diff
--- a/libpurple/dnsquery.c Tue Dec 18 07:39:57 2007 +0000 +++ b/libpurple/dnsquery.c Tue Dec 18 08:42:41 2007 +0000 @@ -547,7 +547,7 @@ { #ifdef HAVE_GETADDRINFO g_snprintf(message, sizeof(message), _("Error resolving %s:\n%s"), - query_data->hostname, gai_strerror(err)); + query_data->hostname, purple_gai_strerror(err)); #else g_snprintf(message, sizeof(message), _("Error resolving %s: %d"), query_data->hostname, err); @@ -695,7 +695,7 @@ } freeaddrinfo(tmp); } else { - query_data->error_message = g_strdup_printf(_("Error resolving %s:\n%s"), query_data->hostname, gai_strerror(rc)); + query_data->error_message = g_strdup_printf(_("Error resolving %s:\n%s"), query_data->hostname, purple_gai_strerror(rc)); } #else if ((hp = gethostbyname(query_data->hostname))) {
