]> git.tdb.fi Git - ext/subsurface.git/commit
don't use strftime() due to locale issues
authorLubomir I. Ivanov <neolit123@gmail.com>
Mon, 7 Nov 2011 05:33:49 +0000 (07:33 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 7 Nov 2011 16:50:06 +0000 (08:50 -0800)
commit97f09f3ea81548a3aac5ae839b1d1bc6211fe8ec
tree14fac35925bd768abba30f95b65b3e22d529fbbf
parent6fa702bcbd95d909bfe4d17a0039005caabab141
don't use strftime() due to locale issues

Make statistics.c use snprintf() with weekday(), monthname() instead of
strftime().  The mingw strftime() ends up having lots of problems at
least on Windows unless you set the locale just right, so just avoid the
problem by doing the simple function by hand.  We already did that in
other places anyway.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
statistics.c