Re: [evolution-patches] Fix for Evolution 1.2 shortcut migration
- From: Not Zed <notzed ximian com>
- To: Frederic Crozat <fcrozat mandrakesoft com>
- Cc: evolution-patches <evolution-patches lists ximian com>
- Subject: Re: [evolution-patches] Fix for Evolution 1.2 shortcut migration
- Date: Thu, 11 Sep 2003 20:12:33 -0500
looks good, just change the
}
else {
to be
} else {
On Thu, 2003-09-11 at 17:46 +0200, Frederic Crozat wrote:
> Can we guarantee what we're gettting is valid utf8? I guess libxml
> could validate it for us, but, well, you know libxml ...
>
> + while (*p) {
> + g_string_append_c(out,(char) g_utf8_get_char(p));
> + p = g_utf8_next_char (p);
> + }
>
> Otherwise ^^ could end up in an infinite loop, or trapsing over
> memory.
After discussing with NotZed and DV on irc, we can assume libxml2
outputs UTF-8.. But I've added a g_utf8_validate, just in case..
--
Frederic Crozat <fcrozat mandrakesoft com>
Mandrakesoft
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]