diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-10-27 14:32:10 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-10-27 14:32:10 +0000 |
commit | b229a887dfd73dcb2e8bd3d54dc21878fa189ddc (patch) | |
tree | fbe712d4bf6842f74c464eafaffd365649869b5d /src/datacache/plugin_datacache_sqlite.c | |
parent | 6ba9ee7b1d1c3e1ba90ad4e936672c6a3b1b99da (diff) | |
download | gnunet-b229a887dfd73dcb2e8bd3d54dc21878fa189ddc.tar.gz gnunet-b229a887dfd73dcb2e8bd3d54dc21878fa189ddc.zip |
seaspidering
Diffstat (limited to 'src/datacache/plugin_datacache_sqlite.c')
-rw-r--r-- | src/datacache/plugin_datacache_sqlite.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/datacache/plugin_datacache_sqlite.c b/src/datacache/plugin_datacache_sqlite.c index 95b65cb10..7674402c7 100644 --- a/src/datacache/plugin_datacache_sqlite.c +++ b/src/datacache/plugin_datacache_sqlite.c | |||
@@ -372,13 +372,12 @@ libgnunet_plugin_datacache_sqlite_init (void *cls) | |||
372 | GNUNET_break (0); | 372 | GNUNET_break (0); |
373 | return NULL; | 373 | return NULL; |
374 | } | 374 | } |
375 | fn_utf8 = GNUNET_STRINGS_to_utf8 (fn, strlen (fn), | ||
376 | #ifdef ENABLE_NLS | 375 | #ifdef ENABLE_NLS |
377 | nl_langinfo (CODESET) | 376 | fn_utf8 = GNUNET_STRINGS_to_utf8 (fn, strlen (fn), nl_langinfo (CODESET)); |
378 | #else | 377 | #else |
379 | "UTF-8" /* good luck */ | 378 | /* good luck */ |
379 | fn_utf8 = GNUNET_STRINGS_to_utf8 (fn, strlen (fn), "UTF-8"); | ||
380 | #endif | 380 | #endif |
381 | ); | ||
382 | if (SQLITE_OK != sqlite3_open (fn_utf8, &dbh)) | 381 | if (SQLITE_OK != sqlite3_open (fn_utf8, &dbh)) |
383 | { | 382 | { |
384 | GNUNET_free (fn); | 383 | GNUNET_free (fn); |