[glib: 1/5] glib/tests: add comment about %Z strftime on w32




commit acb46f8b36e1f0f0ead430fb76d4d077a72a8683
Author: Marc-André Lureau <marcandre lureau redhat com>
Date:   Wed Feb 9 19:38:17 2022 +0400

    glib/tests: add comment about %Z strftime on w32
    
    Signed-off-by: Marc-André Lureau <marcandre lureau redhat com>

 glib/tests/date.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/glib/tests/date.c b/glib/tests/date.c
index 15aacf9ee..87f4c2da0 100644
--- a/glib/tests/date.c
+++ b/glib/tests/date.c
@@ -801,8 +801,13 @@ test_strftime (void)
       g_assert_cmpstr (buf, ==, strftime_checks[i].expect);
     }
 
-  /* Time zone is too versatile on OS_WIN32 to be checked precisely */
 #ifdef G_OS_WIN32
+  /*
+   * Time zone is too versatile on OS_WIN32 to be checked precisely,
+   * According to msdn: "Either the locale's time-zone name
+   * or time zone abbreviation, depending on registry settings; no characters
+   * if time zone is unknown".
+   */
   g_assert_cmpint (g_date_strftime (buf, sizeof (buf), "%Z", d), !=, 0);
 #endif
 


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