Support wide character strings
- "string" lens and "format" pack were extended such that using an
integer as underlying array type denotes a wide character string.
- several prototypes from wchar.h were added to libc.so.conf.
- ltrace.conf.5 was updated
diff --git a/libltrace.c b/libltrace.c
index d43a9b2..a8dd61e 100644
--- a/libltrace.c
+++ b/libltrace.c
@@ -21,10 +21,11 @@
#include "config.h"
-#include <limits.h>
#include <sys/param.h>
#include <sys/wait.h>
#include <errno.h>
+#include <limits.h>
+#include <locale.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
@@ -99,7 +100,10 @@
}
void
-ltrace_init(int argc, char **argv) {
+ltrace_init(int argc, char **argv)
+{
+ setlocale(LC_ALL, "");
+
struct opt_p_t *opt_p_tmp;
atexit(normal_exit);