[gssdp] Avoid non-ASCII characters in discovery requests



commit 7cced1a1d94f4bc35bd0be444b89164da5b7446f
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Jul 26 21:47:15 2013 +0200

    Avoid non-ASCII characters in discovery requests
    
    Using the application name means that we were using a
    translated string. In some locales, this caused the Synology
    NAS not to answer our requests.
    
    Use the (usually) ASCII-only prgname instead.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=704953

 libgssdp/gssdp-resource-browser.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgssdp/gssdp-resource-browser.c b/libgssdp/gssdp-resource-browser.c
index 6a41e77..061181f 100644
--- a/libgssdp/gssdp-resource-browser.c
+++ b/libgssdp/gssdp-resource-browser.c
@@ -1049,7 +1049,7 @@ send_discovery_request (GSSDPResourceBrowser *resource_browser)
         message = g_strdup_printf (SSDP_DISCOVERY_REQUEST,
                                    resource_browser->priv->target,
                                    resource_browser->priv->mx,
-                                   g_get_application_name () ?: "");
+                                   g_get_prgname () ?: "");
 
         _gssdp_client_send_message (resource_browser->priv->client,
                                     NULL,


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