From f9e25d813860d53cd1e9b6145cc63375d2fe2529 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sat, 13 Jun 2015 04:37:27 +0000 Subject: add %m support to wide printf --- src/stdio/vfwprintf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/stdio/vfwprintf.c b/src/stdio/vfwprintf.c index ebdff001..281f4e56 100644 --- a/src/stdio/vfwprintf.c +++ b/src/stdio/vfwprintf.c @@ -293,6 +293,8 @@ static int wprintf_core(FILE *f, const wchar_t *fmt, va_list *ap, union arg *nl_ if ((fl&LEFT_ADJ)) fprintf(f, "%.*s", w-p, ""); l=w; continue; + case 'm': + arg.p = strerror(errno); case 's': bs = arg.p; if (p<0) p = INT_MAX; -- cgit v1.2.1