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



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]