From c4a26fef3d2fe1f5fb3ff4cce0153c27eb21b45f Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Fri, 20 Apr 2001 23:05:36 +0000 Subject: Convert the result of g_get_real_name() from the locale charset to UTF8. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * mail-config-druid.c (make_default_account): Convert the result of g_get_real_name() from the locale charset to UTF8. Noted by Petter Sundlöf (NOT "Petter Sundl_" :) svn path=/trunk/; revision=9481 --- mail/ChangeLog | 6 ++++++ mail/mail-config-druid.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index e102cbeff6..7f47a26125 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2001-04-20 Dan Winship + + * mail-config-druid.c (make_default_account): Convert the result + of g_get_real_name() from the locale charset to UTF8. Noted by + Petter Sundlöf (NOT "Petter Sundl_" :) + 2001-04-20 Jeffrey Stedfast * mail-config.c (mail_config_set_pgp_type): Use a CamelPgpType. diff --git a/mail/mail-config-druid.c b/mail/mail-config-druid.c index c6d386507f..7663fee09b 100644 --- a/mail/mail-config-druid.c +++ b/mail/mail-config-druid.c @@ -370,7 +370,7 @@ make_default_account (void) account->id = g_new0 (MailConfigIdentity, 1); name = g_get_real_name (); - account->id->name = g_strdup (name); + account->id->name = e_utf8_from_locale_string (name); user = getenv ("USER"); if (user && !uname (&uts) && strchr (uts.nodename, '.')) account->id->address = g_strdup_printf ("%s@%s", user, uts.nodename); -- cgit v1.2.3