[gtk/wip/otte/paintable: 45/62] calendar: Don't use %OB



commit 54e7f58ad313e682714b3da2bd24278667135db0
Author: Benjamin Otte <otte redhat com>
Date:   Sat Feb 17 20:34:27 2018 +0100

    calendar: Don't use %OB
    
    The compiler correctly warns about it and that breaks my compile.

 gtk/gtkcalendar.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkcalendar.c b/gtk/gtkcalendar.c
index a93d92e384..c0d64beaef 100644
--- a/gtk/gtkcalendar.c
+++ b/gtk/gtkcalendar.c
@@ -704,7 +704,7 @@ gtk_calendar_init (GtkCalendar *calendar)
 #ifndef G_OS_WIN32
         tmp_time=i*2764800;
         /* Note: "%OB" works only in glibc >= 2.27 and in BSD and OS X.  */
-        strftime (buffer, sizeof (buffer), "%OB", gmtime (&tmp_time));
+        strftime (buffer, sizeof (buffer), "%B", gmtime (&tmp_time));
         default_monthname[i] = g_locale_to_utf8 (buffer, -1, NULL, NULL, NULL);
 #else
         if (!GetLocaleInfoW (GetThreadLocale (), LOCALE_SMONTHNAME1 + i,


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