summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Orlenko <zxteam@gmail.com>2010-10-10 23:49:10 +1100
committerAlexander Orlenko <zxteam@gmail.com>2010-10-10 23:49:10 +1100
commit72af572ddc0f795e8be43de4359a94934901b668 (patch)
treea06534e042c503cd9dc920c0e20ef612c9ec39bf
parent788d6554613da5da1577d24485ae414037b444c0 (diff)
downloadbluez-tools-72af572ddc0f795e8be43de4359a94934901b668.tar.gz
Added querying of current locale
-rw-r--r--src/bt-adapter.c4
-rw-r--r--src/bt-agent.c4
-rw-r--r--src/bt-audio.c4
-rw-r--r--src/bt-device.c4
-rw-r--r--src/bt-input.c4
-rw-r--r--src/bt-monitor.c4
-rw-r--r--src/bt-network.c4
-rw-r--r--src/bt-obex.c5
-rw-r--r--src/bt-serial.c4
9 files changed, 36 insertions, 1 deletions
diff --git a/src/bt-adapter.c b/src/bt-adapter.c
index e39ef86..9f18146 100644
--- a/src/bt-adapter.c
+++ b/src/bt-adapter.c
@@ -25,6 +25,7 @@
#include <config.h>
#endif
+#include <locale.h>
#include <stdlib.h>
#include <string.h>
@@ -101,6 +102,9 @@ int main(int argc, char *argv[])
GError *error = NULL;
GOptionContext *context;
+ /* Query current locale */
+ setlocale(LC_CTYPE, "");
+
g_type_init();
dbus_init();
diff --git a/src/bt-agent.c b/src/bt-agent.c
index 0fc97bb..5200478 100644
--- a/src/bt-agent.c
+++ b/src/bt-agent.c
@@ -25,6 +25,7 @@
#include <config.h>
#endif
+#include <locale.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
@@ -69,6 +70,9 @@ int main(int argc, char *argv[])
GError *error = NULL;
GOptionContext *context;
+ /* Query current locale */
+ setlocale(LC_CTYPE, "");
+
g_type_init();
dbus_init();
diff --git a/src/bt-audio.c b/src/bt-audio.c
index 8d2e7ee..f841d02 100644
--- a/src/bt-audio.c
+++ b/src/bt-audio.c
@@ -25,6 +25,7 @@
#include <config.h>
#endif
+#include <locale.h>
#include <stdlib.h>
#include <string.h>
@@ -68,6 +69,9 @@ int main(int argc, char *argv[])
GError *error = NULL;
GOptionContext *context;
+ /* Query current locale */
+ setlocale(LC_CTYPE, "");
+
g_type_init();
dbus_init();
diff --git a/src/bt-device.c b/src/bt-device.c
index f011d79..e8b7dfb 100644
--- a/src/bt-device.c
+++ b/src/bt-device.c
@@ -25,6 +25,7 @@
#include <config.h>
#endif
+#include <locale.h>
#include <stdlib.h>
#include <string.h>
@@ -252,6 +253,9 @@ int main(int argc, char *argv[])
GError *error = NULL;
GOptionContext *context;
+ /* Query current locale */
+ setlocale(LC_CTYPE, "");
+
g_type_init();
dbus_init();
diff --git a/src/bt-input.c b/src/bt-input.c
index 4e9889a..3915eb1 100644
--- a/src/bt-input.c
+++ b/src/bt-input.c
@@ -25,6 +25,7 @@
#include <config.h>
#endif
+#include <locale.h>
#include <stdlib.h>
#include <string.h>
@@ -65,6 +66,9 @@ int main(int argc, char *argv[])
GError *error = NULL;
GOptionContext *context;
+ /* Query current locale */
+ setlocale(LC_CTYPE, "");
+
g_type_init();
dbus_init();
diff --git a/src/bt-monitor.c b/src/bt-monitor.c
index 6fb0488..8f6b888 100644
--- a/src/bt-monitor.c
+++ b/src/bt-monitor.c
@@ -25,6 +25,7 @@
#include <config.h>
#endif
+#include <locale.h>
#include <stdlib.h>
#include <string.h>
@@ -409,6 +410,9 @@ int main(int argc, char *argv[])
GError *error = NULL;
GOptionContext *context;
+ /* Query current locale */
+ setlocale(LC_CTYPE, "");
+
g_type_init();
dbus_init();
diff --git a/src/bt-network.c b/src/bt-network.c
index 61bd55d..b1a5561 100644
--- a/src/bt-network.c
+++ b/src/bt-network.c
@@ -25,6 +25,7 @@
#include <config.h>
#endif
+#include <locale.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
@@ -80,6 +81,9 @@ int main(int argc, char *argv[])
GError *error = NULL;
GOptionContext *context;
+ /* Query current locale */
+ setlocale(LC_CTYPE, "");
+
g_type_init();
dbus_init();
diff --git a/src/bt-obex.c b/src/bt-obex.c
index f33abb9..828e19e 100644
--- a/src/bt-obex.c
+++ b/src/bt-obex.c
@@ -25,11 +25,11 @@
#include <config.h>
#endif
+#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-
#include <readline/readline.h>
#include <readline/history.h>
@@ -141,6 +141,9 @@ int main(int argc, char *argv[])
GError *error = NULL;
GOptionContext *context;
+ /* Query current locale */
+ setlocale(LC_CTYPE, "");
+
g_type_init();
dbus_init();
diff --git a/src/bt-serial.c b/src/bt-serial.c
index a2abe11..d6322d1 100644
--- a/src/bt-serial.c
+++ b/src/bt-serial.c
@@ -25,6 +25,7 @@
#include <config.h>
#endif
+#include <locale.h>
#include <stdlib.h>
#include <string.h>
@@ -54,6 +55,9 @@ int main(int argc, char *argv[])
GError *error = NULL;
GOptionContext *context;
+ /* Query current locale */
+ setlocale(LC_CTYPE, "");
+
g_type_init();
dbus_init();