소스 검색

add %m support to wide printf

Rich Felker 9 년 전
부모
커밋
f9e25d8138
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/stdio/vfwprintf.c

+ 2 - 0
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;