diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-02-08 04:32:05 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-02-08 04:32:05 +0000 |
commit | 224290463c8e1dca64c82272d5a382930c483145 (patch) | |
tree | fc3b775d2fea859c09a99d7b8884b41adc645ce7 /src/rfc2015.c | |
parent | 71a50733bb4cd3654b81efd8c349d7a79ef7524a (diff) |
fixed locale encoding problem on win32.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@987 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/rfc2015.c')
-rw-r--r-- | src/rfc2015.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rfc2015.c b/src/rfc2015.c index fc2ccfb7..8f1d975f 100644 --- a/src/rfc2015.c +++ b/src/rfc2015.c @@ -172,7 +172,10 @@ static gchar *sig_status_full(gpgme_ctx_t ctx, gpgme_verify_result_t result) ctime_val = localtime(&created); my_strftime(ctime_str, sizeof (ctime_str), "%c", ctime_val); - ctime_str_utf8 = conv_localetodisp(ctime_str, NULL); + ctime_str_utf8 = g_locale_to_utf8(ctime_str, -1, + NULL, NULL, NULL); + if (!ctime_str_utf8) + ctime_str_utf8 = g_strdup(ctime_str); g_string_sprintfa(str, _("Signature made at %s\n"), ctime_str_utf8); g_free(ctime_str_utf8); |