diff options
Diffstat (limited to 'src/datastore')
-rw-r--r-- | src/datastore/plugin_datastore_sqlite.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/datastore/plugin_datastore_sqlite.c b/src/datastore/plugin_datastore_sqlite.c index 54414a8b0..01f6b9188 100644 --- a/src/datastore/plugin_datastore_sqlite.c +++ b/src/datastore/plugin_datastore_sqlite.c | |||
@@ -243,13 +243,8 @@ database_setup (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
243 | /* database is new or got deleted, reset payload to zero! */ | 243 | /* database is new or got deleted, reset payload to zero! */ |
244 | plugin->env->duc (plugin->env->cls, 0); | 244 | plugin->env->duc (plugin->env->cls, 0); |
245 | } | 245 | } |
246 | #ifdef ENABLE_NLS | 246 | /* afsdir should be UTF-8-encoded. If it isn't, it's a bug */ |
247 | plugin->fn = | 247 | plugin->fn = afsdir; |
248 | GNUNET_STRINGS_to_utf8 (afsdir, strlen (afsdir), nl_langinfo (CODESET)); | ||
249 | #else | ||
250 | plugin->fn = GNUNET_STRINGS_to_utf8 (afsdir, strlen (afsdir), "UTF-8"); /* good luck */ | ||
251 | #endif | ||
252 | GNUNET_free (afsdir); | ||
253 | 248 | ||
254 | /* Open database and precompile statements */ | 249 | /* Open database and precompile statements */ |
255 | if (sqlite3_open (plugin->fn, &plugin->dbh) != SQLITE_OK) | 250 | if (sqlite3_open (plugin->fn, &plugin->dbh) != SQLITE_OK) |