Re: [Planner] MrProject problem
- From: Richard Hult <richard imendio com>
- To: Planner Project Manager <planner lists imendio com>
- Subject: Re: [Planner] MrProject problem
- Date: Fri, 14 Nov 2003 15:34:19 +0100
Hi,
If you could try the attached patch, that might help. Frederic found a
bug that I think is the same as you are seeing.
/Richard
Index: mrproject/mrp-time.c
===================================================================
RCS file: /cvs/gnome/libmrproject/mrproject/mrp-time.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -b -B -p -r1.25 -r1.26
--- mrproject/mrp-time.c 25 Feb 2003 18:46:36 -0000 1.25
+++ mrproject/mrp-time.c 14 Nov 2003 14:14:34 -0000 1.26
@@ -731,8 +731,8 @@ imrp_time_init (void)
for (i = 0; i < 12; i++) {
gunichar c;
- short_month_names[i] = g_strdup (nl_langinfo (ABMON_1 + i));
- month_names[i] = g_strdup (nl_langinfo (MON_1 + i));
+ short_month_names[i] = g_locale_to_utf8 (nl_langinfo (ABMON_1 + i), -1, NULL, NULL, NULL);
+ month_names[i] = g_locale_to_utf8 (nl_langinfo (MON_1 + i), -1, NULL, NULL, NULL);
c = g_utf8_get_char (month_names[i]);
month_names_initial[i] = g_malloc0 (7);
@@ -741,8 +741,8 @@ imrp_time_init (void)
}
for (i = 0; i < 7; i++) {
- short_day_names[i] = g_strdup (nl_langinfo (ABDAY_1 + i));
- day_names[i] = g_strdup (nl_langinfo (DAY_1 + i));
+ short_day_names[i] = g_locale_to_utf8 (nl_langinfo (ABDAY_1 + i), -1, NULL, NULL, NULL);
+ day_names[i] = g_locale_to_utf8 (nl_langinfo (DAY_1 + i), -1, NULL, NULL, NULL);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]