LRN: Update plibc and utf8ization
authorChristian Grothoff <christian@grothoff.org>
Sat, 2 Jun 2012 14:39:13 +0000 (14:39 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 2 Jun 2012 14:39:13 +0000 (14:39 +0000)
configure.ac
src/include/plibc.h
src/util/server.c
src/util/winproc.c

index 95b10be7b059e9cb6dfb280db6b75a2a44e99896..2a8d61261aefb38b442d236d1a55091eb21d0951 100644 (file)
 #
 AC_PREREQ(2.61)
 # Checks for programs.
-AC_INIT([gnunet], [0.9.2],[bug-gnunet@gnu.org])
+AC_INIT([gnunet], [0.9.3],[bug-gnunet@gnu.org])
 
 AC_CANONICAL_TARGET
 AC_CANONICAL_HOST
 AC_CANONICAL_SYSTEM
 
-AM_INIT_AUTOMAKE([gnunet], [0.9.2])
+AM_INIT_AUTOMAKE([gnunet], [0.9.3])
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 AC_CONFIG_HEADERS([gnunet_config.h])
 AH_TOP([#define _GNU_SOURCE  1])
index 70cbd9e81367f8d057844fc7e8ab06920cf2fe13..1cb84e6b7f5f3e2cef9f7bd1ddf6d670b7b0dc5e 100644 (file)
@@ -22,7 +22,7 @@
  * @brief PlibC header
  * @attention This file is usually not installed under Unix,
  *            so ship it with your application
- * @version $Revision$
+ * @version $Revision: 84 $
  */
 
 #ifndef _PLIBC_H_
@@ -336,9 +336,13 @@ typedef struct
 #define SetErrnoFromWinError(e) _SetErrnoFromWinError(e, __FILE__, __LINE__)
 
 BOOL _plibc_CreateShortcut(const char *pszSrc, const char *pszDest);
+BOOL _plibc_CreateShortcutW(const wchar_t *pwszSrc, const wchar_t *pwszDest);
 BOOL _plibc_DereferenceShortcut(char *pszShortcut);
+BOOL _plibc_DereferenceShortcutW(wchar_t *pwszShortcut);
 char *plibc_ChooseDir(char *pszTitle, unsigned long ulFlags);
+wchar_t *plibc_ChooseDirW(wchar_t *pwszTitle, unsigned long ulFlags);
 char *plibc_ChooseFile(char *pszTitle, unsigned long ulFlags);
+wchar_t *plibc_ChooseFileW(wchar_t *pwszTitle, unsigned long ulFlags);
 
 long QueryRegistry(HKEY hMainKey, const char *pszKey, const char *pszSubKey,
               char *pszBuffer, long *pdLength);
@@ -376,6 +380,7 @@ const char *inet_ntop(int af, const void *src, char *dst, size_t size);
 struct tm *gmtime_r(const time_t *clock, struct tm *result);
 
 int plibc_init(char *pszOrg, char *pszApp);
+int plibc_init_utf8(char *pszOrg, char *pszApp, int utf8_mode);
 void plibc_shutdown();
 int plibc_initialized();
 
index d639f65b5eb5b5ca3b261a02a65470012981801d..e25ada3041f6cff85670b92146da008e4c7d2234 100644 (file)
@@ -819,7 +819,7 @@ warn_no_receive_done (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 
   GNUNET_break (0 != client->warn_type); /* type should never be 0 here, as we don't use 0 */
   client->warn_task =
-      GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MINUTES,
+      GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS,
                                     &warn_no_receive_done, client);
   if (0 == (GNUNET_SCHEDULER_REASON_SHUTDOWN & tc->reason))
     LOG (GNUNET_ERROR_TYPE_WARNING,
@@ -907,7 +907,7 @@ GNUNET_SERVER_inject (struct GNUNET_SERVER_Handle *server,
            GNUNET_break (0 != type); /* type should never be 0 here, as we don't use 0 */
             sender->warn_start = GNUNET_TIME_absolute_get ();
             sender->warn_task =
-                GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MINUTES,
+                GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS,
                                               &warn_no_receive_done, sender);
             sender->warn_type = type;
           }
@@ -1389,6 +1389,7 @@ GNUNET_SERVER_client_disconnect (struct GNUNET_SERVER_Client *client)
   (void) GNUNET_SCHEDULER_add_now (&destroy_connection,
                                   client->connection);
   GNUNET_assert (GNUNET_SCHEDULER_NO_TASK == client->warn_task);
+  GNUNET_assert (GNUNET_NO == client->receive_pending);
   GNUNET_free (client);
   /* we might be in soft-shutdown, test if we're done */
   if (NULL != server)
index f49c445e56f9b5ad95f1cdce0b224ba9a2057893..b75fc86db408237a1d8281fcf34c753e64225058 100644 (file)
@@ -145,7 +145,7 @@ GNInitWinEnv ()
 
   plibc_initialized ();
   plibc_set_panic_proc (plibc_panic);
-  ret = plibc_init ("GNU", PACKAGE);
+  ret = plibc_init_utf8 ("GNU", PACKAGE, 1);
 
   /* don't load other DLLs twice */
   if (hNTDLL)