From: Mark Andrews Date: Wed, 4 Oct 2017 09:44:01 +0000 (+1100) Subject: add L for wide X-Git-Tag: v9.12.0b1~94 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=055d310e54c83795809def7f44bf00f7e724e2af;p=thirdparty%2Fbind9.git add L for wide --- diff --git a/bin/dig/dig.c b/bin/dig/dig.c index 43e015b88cb..a7c34a3ec45 100644 --- a/bin/dig/dig.c +++ b/bin/dig/dig.c @@ -260,7 +260,7 @@ received(int bytes, isc_sockaddr_t *from, dig_query_t *query) { * wide-character string, which strftime() handles incorrectly. */ if (wcsftime(time_str, sizeof(time_str)/sizeof(time_str[0]), - "%a %b %d %H:%M:%S %Z %Y", &tmnow) > 0U) + L"%a %b %d %H:%M:%S %Z %Y", &tmnow) > 0U) printf(";; WHEN: %ls\n", time_str); #else if (strftime(time_str, sizeof(time_str),