diff options
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); |