From 53fa137f38eb9dc07ee21b89dbc2495fd0737142 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 13 Jun 2006 23:30:02 +0000 Subject: g_get_real_name() returns UTF-8 on Win32. 2006-06-14 Tor Lillqvist * em-account-editor.c (emae_check_complete): g_get_real_name() returns UTF-8 on Win32. svn path=/trunk/; revision=32131 --- mail/em-account-editor.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mail/em-account-editor.c') diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c index ba51b4e741..1d2c07bd91 100644 --- a/mail/em-account-editor.c +++ b/mail/em-account-editor.c @@ -2539,7 +2539,11 @@ emae_check_complete(EConfig *ec, const char *pageid, void *data) char *uname; emae->priv->identity_set = 1; +#ifndef G_OS_WIN32 uname = g_locale_to_utf8(g_get_real_name(), -1, NULL, NULL, NULL); +#else + uname = g_strdup(g_get_real_name()); +#endif if (uname) { gtk_entry_set_text(emae->priv->identity_entries[1], uname); g_free(uname); -- cgit