Re: [evolution-patches] Fix for Evolution 1.2 shortcut migration



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...)

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...

-- Ettore



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]