[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r1564 - GNUnet/src/util
From: |
grothoff |
Subject: |
[GNUnet-SVN] r1564 - GNUnet/src/util |
Date: |
Sat, 16 Jul 2005 13:53:46 -0700 (PDT) |
Author: grothoff
Date: 2005-07-16 13:53:42 -0700 (Sat, 16 Jul 2005)
New Revision: 1564
Modified:
GNUnet/src/util/logging.c
Log:
dfmt
Modified: GNUnet/src/util/logging.c
===================================================================
--- GNUnet/src/util/logging.c 2005-07-16 20:16:13 UTC (rev 1563)
+++ GNUnet/src/util/logging.c 2005-07-16 20:53:42 UTC (rev 1564)
@@ -132,9 +132,13 @@
return OK;
}
logdate = &fullname[strlen(def->basename)];
+#if ENABLE_NLS
ret = strptime(logdate,
nl_langinfo(D_FMT),
&t);
+#else
+ ret = strptime(logdate, "%Y-%m-%d", &t);
+#endif
if ( (ret == NULL) ||
(ret[0] != '\0') ) {
FREE(fullname);
@@ -176,7 +180,11 @@
char *datefmt;
char c;
+#if ENABLE_NLS
datefmt = nl_langinfo(D_FMT);
+#else
+ datefmt = "%Y-%m-%d";
+#endif
time(&curtime);
#ifdef localtime_r
localtime_r(&curtime, &def.curtime);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r1564 - GNUnet/src/util,
grothoff <=