Hi Rob,

Here is the unified version.

You may have notice that I have ask for update bugs #299897 and
#304175 to merge state with this issue. In fact, they seems to be
corrected (no crash at all) with this patch.

Regards,
Yannick

2006/11/12, Rob Bradford <[EMAIL PROTECTED]>:
On Sun, 2006-11-12 at 15:56 +0100, Yannick Gicquel wrote:
> Hello,
>
> You can find a correction for this issue in mail attachment.

Can you make it a unified diff please.

Cheers,

Rob
--
Rob Bradford <[EMAIL PROTECTED]>


--- text_editor.c.bak	2005-04-06 11:05:45.000000000 +0200
+++ text_editor.c	2006-11-12 18:17:26.000000000 +0100
@@ -874,8 +874,11 @@
 		if (locale_charset != NULL)
 		{
 			locale_encoding = anjuta_encoding_get_from_charset (locale_charset);
-			encodings = g_list_prepend (encodings,
-						(gpointer) locale_encoding);
+			if (locale_encoding != NULL)
+			{
+			  encodings = g_list_prepend (encodings,
+						      (gpointer) locale_encoding);
+			}
 #ifdef DEBUG
 			g_message ("Current charset = %s", locale_charset);
 			/* g_message ("Current encoding = %s", locale_encoding); */

Reply via email to