diff options
author | ache <ache@FreeBSD.org> | 1995-08-08 03:32:03 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1995-08-08 03:32:03 +0000 |
commit | 8d12d53030caca27dff01deb2bed2b75b179dbab (patch) | |
tree | 217ea4403718edaf587ab1ffdb3d292005c5b790 /usr.bin | |
parent | 9610e91949e55db7f40cc02a2f2aff4eeedc265c (diff) | |
download | FreeBSD-src-8d12d53030caca27dff01deb2bed2b75b179dbab.zip FreeBSD-src-8d12d53030caca27dff01deb2bed2b75b179dbab.tar.gz |
Replace old strftime format by %c, old format forces "Mon Day",
sequence which can be false for several languages.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ar/contents.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/ar/contents.c b/usr.bin/ar/contents.c index dc45b36..e000d535d 100644 --- a/usr.bin/ar/contents.c +++ b/usr.bin/ar/contents.c @@ -77,8 +77,10 @@ contents(argv) (void)printf("%s %6d/%-6d %8qd ", buf + 1, chdr.uid, chdr.gid, chdr.size); tp = localtime(&chdr.date); - (void)strftime(buf, sizeof(buf), "%b %e %H:%M %Y", tp); - (void)printf("%s %s\n", buf, file); + (void)strftime(buf, sizeof(buf), "%c", tp); + buf[16] = '\0'; + buf[24] = '\0'; + (void)printf("%s %s %s\n", buf + 4, buf + 20, file); } else (void)printf("%s\n", file); if (!all && !*argv) |