summary refs log tree commit diff stats
path: root/src/common/util.h
diff options
context:
space:
mode:
authorArnavion <arnavion@gmail.com>2014-04-21 01:39:28 -0700
committerArnavion <arnavion@gmail.com>2014-04-21 01:39:28 -0700
commitdc27640265dcbe480ad137831f3a22f35bd07b51 (patch)
treed80b5b4cbe641d094a6ee71f4fd1f25b8154fd1d /src/common/util.h
parent41c209bf45ce1a926c526959cae2dc94fec7c0b9 (diff)
Use utf-8 variant of strftime to format log file paths.
strftime assumes the format string is in locale encoding, which mangles log file paths that are in utf-8.

Fixes #767
Fixes #945
Diffstat (limited to 'src/common/util.h')
-rw-r--r--src/common/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h
index ffa5a066..f2fe2ecb 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -82,4 +82,5 @@ char *encode_sasl_pass_blowfish (char *user, char *pass, char *data);
 char *encode_sasl_pass_aes (char *user, char *pass, char *data);
 char *challengeauth_response (char *username, char *password, char *challenge);
 size_t strftime_validated (char *dest, size_t destsize, const char *format, const struct tm *time);
+size_t strftime_utf8 (char *dest, size_t destsize, const char *format, time_t time);
 #endif