[evolution-patches] Patch for bug #47529



This patch fixes bug #47529 in the alarm notify dialog. We are trying to
convert utf8 text from the locale encoding, and getting text in the
wrong encoding, by passing text that is already utf8 encoded.

Someone came on IRC this weekend and was complaining about it, so I made
this patch, and they verified that it works. The person said they would
file a bug report, but the only one I could find today was this one from
last year. :-/ At least it can be fixed now.

-- dobey

Index: calendar/gui/alarm-notify/alarm-notify-dialog.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/alarm-notify/alarm-notify-dialog.c,v
retrieving revision 1.29
diff -u -p -r1.29 alarm-notify-dialog.c
--- calendar/gui/alarm-notify/alarm-notify-dialog.c	17 May 2004 20:41:46 -0000	1.29
+++ calendar/gui/alarm-notify/alarm-notify-dialog.c	8 Nov 2004 16:20:07 -0000
@@ -221,7 +221,6 @@ static void
 write_html_heading (GtkHTMLStream *stream, const char *message,
 		    ECalComponentVType vtype, time_t occur_start, time_t occur_end)
 {
-	char *buf;
 	char *start, *end;
 	char *bg_path = "file://" EVOLUTION_IMAGESDIR "/bcg.png";
 	gchar *image_path;
@@ -236,13 +235,8 @@ write_html_heading (GtkHTMLStream *strea
 
 	current_zone = config_data_get_timezone ();
 
-	buf = timet_to_str_with_zone (occur_start, current_zone);
-	start = g_locale_to_utf8 (buf, -1, NULL, NULL, NULL);
-	g_free (buf);
-
-	buf = timet_to_str_with_zone (occur_end, current_zone);
-	end = g_locale_to_utf8 (buf, -1, NULL, NULL, NULL);
-	g_free (buf);
+	start = timet_to_str_with_zone (occur_start, current_zone);
+	end = timet_to_str_with_zone (occur_end, current_zone);
 
 	/* Write the header */
 


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