Re: [evolution-patches] Fix for Evolution 1.2 shortcut migration
- From: Frederic Crozat <fcrozat mandrakesoft com>
- To: Ettore Perazzoli <ettore ximian com>
- Cc: evolution-patches <evolution-patches lists ximian com>
- Subject: Re: [evolution-patches] Fix for Evolution 1.2 shortcut migration
- Date: Wed, 10 Sep 2003 09:33:39 +0200
Le mer 10/09/2003 à 06:07, Ettore Perazzoli a écrit :
> Hello Frederic,
>
> On Tue, 2003-09-09 at 14:40, Frederic Crozat wrote:
> > The attach patch fixes shortcuts migration from Evolution 1.2 :
> > http://qa.mandrakesoft.com/show_bug.cgi?id=4927
> >
> > Strangely, you need to feed libxml2 with locale-encoded strings (and not
> > UTF-8 ones) for shortcuts.xml migration from 1.2 (otherwise you'll end
> > with very ugly strings, which is quite obvious in french).
>
> Hmm, I don't understand why this patch works at all... The current
> shortcut code always sets the data in the libxml tree as UTF-8. So why
> would getting old UTF-8 data and converting it to locale generate a
> valid tree? (It's also the opposite of what the rest of the XML fixing
> code in that file does...)
I don't understand either :)) Maybe libxml2 switched to locale encoding
when reading shortcuts.xml and then expected all strings to be in locale
encoding..
> Do you happen to have an example shortcuts.xml file before and after the
> conversion? Maybe this would help us understand what is going on...
Yep, I've attached 1.2, 1.4 broken and 1.4 correct files..
BTW, when migrating, I also get :
warning: failed to load external entity
"/home/a/evolution/config/storage-set-expanded:default"
(evolution:25542): evolution-shell-CRITICAL **: fome e-storage-set.c:
line 639 (e_storage_set_get_folder): assertion 'g_path_is_absolute
(path)' failed
(evolution:25542): evolution-shell-CRITICAL **: fome e-storage-set.c:
line 639 (e_storage_set_get_folder): assertion 'g_path_is_absolute
(path)' failed
and evolution refuses to exit properly.. You have to kill it and wombat
to get a working evo :(
--
Frederic Crozat <fcrozat mandrakesoft com>
Mandrakesoft
<?xml version="1.0"?>
<shortcuts>
<group title="Raccourcis" icon_size="large">
<item name="Résumé" type="summary">evolution:/summary</item>
<item name="Boîte de réception" type="mail" icon="inbox">default:mail</item>
<item name="Calendrier" type="calendar">default:calendar</item>
<item name="Tâches" type="tasks">default:tasks</item>
<item name="Contacts" type="contacts">default:contacts</item>
</group>
</shortcuts>
<?xml version="1.0"?>
<shortcuts><group title="Raccourcis" icon_size="large"><item name="Résumé" type="summary">evolution:/summary</item><item name="Boîte de réception" type="mail" icon="inbox">default:mail</item><item name="Calendrier" type="calendar">default:calendar</item><item name="Tâches" type="tasks">default:tasks</item><item name="Contacts" type="contacts">default:contacts</item></group></shortcuts>
<?xml version="1.0"?>
<shortcuts><group title="Raccourcis" icon_size="large"><item name="Résumé" type="summary">evolution:/summary</item><item name="Boîte de réception" type="mail" icon="inbox">default:mail</item><item name="Calendrier" type="calendar">default:calendar</item><item name="Tâches" type="tasks">default:tasks</item><item name="Contacts" type="contacts">default:contacts</item></group></shortcuts>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]