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
This commit is contained in:
Pierre Ossman 2006-05-18 10:36:36 +00:00
parent 83591883d8
commit 13798312ef
2 changed files with 33 additions and 5 deletions

View file

@ -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