[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r1566 - GNUnet/src/applications/fs/tools
From: |
grothoff |
Subject: |
[GNUnet-SVN] r1566 - GNUnet/src/applications/fs/tools |
Date: |
Sat, 16 Jul 2005 14:16:10 -0700 (PDT) |
Author: grothoff
Date: 2005-07-16 14:16:08 -0700 (Sat, 16 Jul 2005)
New Revision: 1566
Modified:
GNUnet/src/applications/fs/tools/gnunet-insert.c
Log:
fixing compile errors for platform without gettext
Modified: GNUnet/src/applications/fs/tools/gnunet-insert.c
===================================================================
--- GNUnet/src/applications/fs/tools/gnunet-insert.c 2005-07-16 21:01:31 UTC
(rev 1565)
+++ GNUnet/src/applications/fs/tools/gnunet-insert.c 2005-07-16 21:16:08 UTC
(rev 1566)
@@ -349,8 +349,12 @@
topKeywords[topKeywordCnt-1]
= convertToUtf8(GNoptarg,
strlen(GNoptarg),
- nl_langinfo(CODESET)
- );
+#if ENABLE_NLS
+ nl_langinfo(CODESET)
+#else
+ "utf-8"
+#endif
+ );
break;
case 'K':
GROW(gloKeywords,
@@ -359,7 +363,11 @@
gloKeywords[gloKeywordCnt-1]
= convertToUtf8(GNoptarg,
strlen(GNoptarg),
- nl_langinfo(CODESET)
+#if ENABLE_NLS
+ nl_langinfo(CODESET)
+#else
+ "utf-8"
+#endif
);
break;
case 'm': {
@@ -368,7 +376,11 @@
tmp = convertToUtf8(GNoptarg,
strlen(GNoptarg),
- nl_langinfo(CODESET)
+#if ENABLE_NLS
+ nl_langinfo(CODESET)
+#else
+ "utf-8"
+#endif
);
type = EXTRACTOR_getHighestKeywordTypeNumber();
while (type > 0) {
@@ -592,12 +604,20 @@
if (timestr != NULL) {
struct tm t;
if ((NULL == strptime(timestr,
+#if ENABLE_NLS
nl_langinfo(D_T_FMT),
+#else
+ "%Y-%m-%d",
+#endif
&t))) {
LOG_STRERROR(LOG_FATAL, "strptime");
errexit(_("Parsing time failed. Use '%s' format.\n"),
- nl_langinfo(D_T_FMT)
- );
+#if ENABLE_NLS
+ nl_langinfo(D_T_FMT)
+#else
+ "%Y-%m-%d"
+#endif
+ );
}
FREE(timestr);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r1566 - GNUnet/src/applications/fs/tools,
grothoff <=