summaryrefslogtreecommitdiffstats
path: root/src/daemon/main.c
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2006-05-18 10:36:36 +0000
committerPierre Ossman <ossman@cendio.se>2006-05-18 10:36:36 +0000
commit13798312efde92a618a024064b1b2f2f69dfddaa (patch)
tree562bc6ac8fe62fc44c7773c2051b0943dc678845 /src/daemon/main.c
parent83591883d8bcec475e74881b3f9cbcb84900c7ec (diff)
Convert log text to current locale before passing it on to stderr or syslog.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@933 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/daemon/main.c')
-rw-r--r--src/daemon/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/daemon/main.c b/src/daemon/main.c
index 9b9ea180..b4bc4e00 100644
--- a/src/daemon/main.c
+++ b/src/daemon/main.c
@@ -35,6 +35,7 @@
#include <limits.h>
#include <fcntl.h>
#include <unistd.h>
+#include <locale.h>
#include <sys/types.h>
#include <liboil/liboil.h>
@@ -161,6 +162,8 @@ int main(int argc, char *argv[]) {
struct timeval tv;
#endif
+ setlocale(LC_ALL, "");
+
pa_limit_caps();
#ifdef HAVE_GETUID