aboutsummaryrefslogtreecommitdiff
path: root/src/namestore
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore')
-rw-r--r--src/namestore/plugin_namestore_sqlite.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/namestore/plugin_namestore_sqlite.c b/src/namestore/plugin_namestore_sqlite.c
index 477e7bb16..f0deb7fa9 100644
--- a/src/namestore/plugin_namestore_sqlite.c
+++ b/src/namestore/plugin_namestore_sqlite.c
@@ -213,13 +213,8 @@ database_setup (struct Plugin *plugin)
213 return GNUNET_SYSERR; 213 return GNUNET_SYSERR;
214 } 214 }
215 } 215 }
216#ifdef ENABLE_NLS 216 /* afsdir should be UTF-8-encoded. If it isn't, it's a bug */
217 plugin->fn = 217 plugin->fn = afsdir;
218 GNUNET_STRINGS_to_utf8 (afsdir, strlen (afsdir), nl_langinfo (CODESET));
219#else
220 plugin->fn = GNUNET_STRINGS_to_utf8 (afsdir, strlen (afsdir), "UTF-8"); /* good luck */
221#endif
222 GNUNET_free (afsdir);
223 218
224 /* Open database and precompile statements */ 219 /* Open database and precompile statements */
225 if (sqlite3_open (plugin->fn, &plugin->dbh) != SQLITE_OK) 220 if (sqlite3_open (plugin->fn, &plugin->dbh) != SQLITE_OK)