aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-08-13 01:02:06 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-08-13 01:02:06 +0800
commit15a265e7490c18483002562f0330e159128663f6 (patch)
treea1a5a39fdcd4b5024ee9c6cc79a28c148d24bfd5
parentd472e6e604e527daf3ea02a56cf6b699a2b88ec8 (diff)
downloadgsoc2013-evolution-15a265e7490c18483002562f0330e159128663f6.tar.gz
gsoc2013-evolution-15a265e7490c18483002562f0330e159128663f6.tar.zst
gsoc2013-evolution-15a265e7490c18483002562f0330e159128663f6.zip
Use utf 8 to set the name.
* e-local-storage.c (setup_folder_as_stock): Use utf 8 to set the name. svn path=/trunk/; revision=11936
-rw-r--r--shell/ChangeLog5
-rw-r--r--shell/e-local-storage.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index 2f22b22021..ecb28973e7 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,5 +1,10 @@
2001-08-12 Ettore Perazzoli <ettore@ximian.com>
+ * e-local-storage.c (setup_folder_as_stock): Use utf 8 to set the
+ name.
+
+2001-08-12 Ettore Perazzoli <ettore@ximian.com>
+
* e-storage-set-view.c (etree_value_at): Remove debugging message.
2001-08-12 Ettore Perazzoli <ettore@ximian.com>
diff --git a/shell/e-local-storage.c b/shell/e-local-storage.c
index 3281f0bb58..8c23c8659e 100644
--- a/shell/e-local-storage.c
+++ b/shell/e-local-storage.c
@@ -152,12 +152,16 @@ setup_folder_as_stock (ELocalStorage *local_storage,
const char *name)
{
EFolder *folder;
+ const char *utf8_name;
folder = e_storage_get_folder (E_STORAGE (local_storage), path);
if (folder == NULL)
return FALSE;
- e_folder_set_name (folder, name);
+ utf8_name = e_utf8_from_locale_string (name);
+ e_folder_set_name (folder, utf8_name);
+ g_free (utf8_name);
+
e_folder_set_is_stock (folder, TRUE);
return TRUE;