[gupnp] Work-around missing LC_MESSAGES on windows



commit 2c15f9f398a31cc66f266e27efa0062ae12de32c
Author: Jens Georg <mail jensge org>
Date:   Fri Feb 8 18:51:35 2013 +0100

    Work-around missing LC_MESSAGES on windows

 libgupnp/http-headers.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/libgupnp/http-headers.c b/libgupnp/http-headers.c
index 8f70acb..8ff2c45 100644
--- a/libgupnp/http-headers.c
+++ b/libgupnp/http-headers.c
@@ -118,6 +118,11 @@ http_request_set_accept_language (SoupMessage *message)
         int dash_index;
         GString *tmp;
 
+#ifdef G_OS_WIN32
+        /* TODO: Use GetSystemDefaultLangID or similar */
+        return;
+#else
+
         locale = setlocale (LC_MESSAGES, NULL);
 
         if (locale == NULL)
@@ -150,6 +155,7 @@ http_request_set_accept_language (SoupMessage *message)
                                      tmp->str);
 
         g_string_free (tmp, TRUE);
+#endif
 }
 
 static double


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