pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/evolution fix a format string problem (use of the...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/77d44b0756ac
branches:  trunk
changeset: 555327:77d44b0756ac
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Fri Feb 27 19:45:52 2009 +0000

description:
fix a format string problem (use of the Linux-only "%Id" specifier
which made the small calendar display only nonsense,
ride on recent update
And again: Please test the pkgs at least a little bit before
committing an update.

diffstat:

 mail/evolution/distinfo         |   3 +-
 mail/evolution/patches/patch-ac |  43 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 45 insertions(+), 1 deletions(-)

diffs (63 lines):

diff -r b5f7ac01010a -r 77d44b0756ac mail/evolution/distinfo
--- a/mail/evolution/distinfo   Fri Feb 27 19:39:48 2009 +0000
+++ b/mail/evolution/distinfo   Fri Feb 27 19:45:52 2009 +0000
@@ -1,10 +1,11 @@
-$NetBSD: distinfo,v 1.66 2009/02/27 18:36:31 wiz Exp $
+$NetBSD: distinfo,v 1.67 2009/02/27 19:45:52 drochner Exp $
 
 SHA1 (evolution-2.24.5.tar.bz2) = 3bc92b45b532d35decb7a8238afb469ff90c1596
 RMD160 (evolution-2.24.5.tar.bz2) = bc074627728d9f9bae10e271285bfdf31c8555bc
 Size (evolution-2.24.5.tar.bz2) = 32657364 bytes
 SHA1 (patch-aa) = d490839edcbb4893086750e052ca41bfff487bfa
 SHA1 (patch-ab) = b56533feb1bf7d3c3eabf905a50a54e7f27f5b1c
+SHA1 (patch-ac) = c73785976e31dbc94178720a2e28b968a6b00e49
 SHA1 (patch-ya) = d1ab90d374ca475c4b4b54bb7ad535434d3bdfeb
 SHA1 (patch-yb) = babd94b7d4dde36a0dfbaa392556d54c6e8868e6
 SHA1 (patch-yc) = 3ab94e66a4fe70088f1e86b035050540e1849558
diff -r b5f7ac01010a -r 77d44b0756ac mail/evolution/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/evolution/patches/patch-ac   Fri Feb 27 19:45:52 2009 +0000
@@ -0,0 +1,43 @@
+$NetBSD: patch-ac,v 1.20 2009/02/27 19:45:52 drochner Exp $
+
+--- widgets/misc/e-calendar-item.c.orig        2009-02-26 20:09:06.000000000 +0100
++++ widgets/misc/e-calendar-item.c
+@@ -1505,12 +1505,12 @@ e_calendar_item_draw_day_numbers (ECalen
+                       if (week_num >= 10) {
+                               digit = week_num / 10;
+                               text_x -= calitem->week_number_digit_widths[digit];
+-                              num_chars += sprintf (&buffer[num_chars], "%Id", digit);
++                              num_chars += sprintf (&buffer[num_chars], "%d", digit);
+                       }
+ 
+                       digit = week_num % 10;
+                       text_x -= calitem->week_number_digit_widths[digit] + 6;
+-                      num_chars += sprintf (&buffer[num_chars], "%Id", digit);
++                      num_chars += sprintf (&buffer[num_chars], "%d", digit);
+ 
+                       cairo_save (cr);
+                       gdk_cairo_set_source_color (cr, &style->text[GTK_STATE_ACTIVE]);
+@@ -1618,12 +1618,12 @@ e_calendar_item_draw_day_numbers (ECalen
+                               if (day_num >= 10) {
+                                       digit = day_num / 10;
+                                       day_x -= calitem->digit_widths[digit];
+-                                      num_chars += sprintf (&buffer[num_chars], "%Id", digit);
++                                      num_chars += sprintf (&buffer[num_chars], "%d", digit);
+                               }
+ 
+                               digit = day_num % 10;
+                               day_x -= calitem->digit_widths[digit];
+-                              num_chars += sprintf (&buffer[num_chars], "%Id", digit);
++                              num_chars += sprintf (&buffer[num_chars], "%d", digit);
+ 
+                               cairo_save (cr);
+                               if (fg_color) {
+@@ -1958,7 +1958,7 @@ e_calendar_item_recalc_sizes             (ECalendar
+               gchar locale_digit[5];
+               int locale_digit_len;
+               
+-              locale_digit_len = sprintf (locale_digit, "%Id", digit);
++              locale_digit_len = sprintf (locale_digit, "%d", digit);
+ 
+               pango_layout_set_text (layout, locale_digit, locale_digit_len);
+               pango_layout_get_pixel_size (layout, &width, NULL);



Home | Main Index | Thread Index | Old Index