Convert the result of g_get_real_name() from the locale charset to UTF8.

* 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
This commit is contained in:
Dan Winship
2001-04-20 23:05:36 +00:00
parent 986252ceaf
commit c4a26fef3d
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2001-04-20 Dan Winship <danw@ximian.com>
* 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<64>f (NOT "Petter Sundl_" :)
2001-04-20 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_set_pgp_type): Use a CamelPgpType.

View File

@ -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);