summaryrefslogtreecommitdiffstats
path: root/src/query.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-06-16 18:52:29 +0000
committerDavid Robillard <d@drobilla.net>2009-06-16 18:52:29 +0000
commit440c0070df3e0d5afedcda5b7ea40b728a0501c4 (patch)
treedd93808b7f5307f32e57e58367fcc0b41480d3a7 /src/query.c
parent762819dcfde67013d8c9ee1f752272abbaf3d82d (diff)
downloadlilv-440c0070df3e0d5afedcda5b7ea40b728a0501c4.tar.gz
lilv-440c0070df3e0d5afedcda5b7ea40b728a0501c4.tar.bz2
lilv-440c0070df3e0d5afedcda5b7ea40b728a0501c4.zip
Don't kludge locale around queries.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2116 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/query.c')
-rw-r--r--src/query.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/query.c b/src/query.c
index ee709cb..34cb260 100644
--- a/src/query.c
+++ b/src/query.c
@@ -145,17 +145,8 @@ slv2_plugin_query_sparql(SLV2Plugin plugin,
return NULL;
}
- // Reset numeric locale to correctly interpret turtle numeric constants
- char* locale = strdup(setlocale(LC_NUMERIC, NULL));
- setlocale(LC_NUMERIC, "POSIX");
-
librdf_query_results* results = librdf_query_execute(query, plugin->rdf);
- // Restore numeric locale
- setlocale(LC_NUMERIC, locale);
-
- free(locale);
-
librdf_free_query(query);
free(query_str);