diff options
-rw-r--r-- | src/query.c | 1 | ||||
-rw-r--r-- | src/value.c | 10 |
2 files changed, 5 insertions, 6 deletions
diff --git a/src/query.c b/src/query.c index 34cb260..2400b86 100644 --- a/src/query.c +++ b/src/query.c @@ -20,7 +20,6 @@ #include <assert.h> #include <librdf.h> #include <limits.h> -#include <locale.h> #include <stdlib.h> #include <string.h> #include "slv2/types.h" diff --git a/src/value.c b/src/value.c index 9c5b202..304e666 100644 --- a/src/value.c +++ b/src/value.c @@ -240,9 +240,9 @@ slv2_value_get_turtle_token(SLV2Value value) result = strdup(value->str_val); break; case SLV2_VALUE_INT: - // INT64_MAX is 9223372036854775807 (19 digits) + 1 for sign - // FIXME: locale kludge, need a locale independent snprintf - locale = strdup(setlocale(LC_NUMERIC, NULL)); + // INT64_MAX is 9223372036854775807 (19 digits) + 1 for sign + // FIXME: locale kludge, need a locale independent snprintf + locale = strdup(setlocale(LC_NUMERIC, NULL)); len = 20; result = calloc(len, sizeof(char)); setlocale(LC_NUMERIC, "POSIX"); @@ -250,8 +250,8 @@ slv2_value_get_turtle_token(SLV2Value value) setlocale(LC_NUMERIC, locale); break; case SLV2_VALUE_FLOAT: - // FIXME: locale kludge, need a locale independent snprintf - locale = strdup(setlocale(LC_NUMERIC, NULL)); + // FIXME: locale kludge, need a locale independent snprintf + locale = strdup(setlocale(LC_NUMERIC, NULL)); len = 20; // FIXME: proper maximum value? result = calloc(len, sizeof(char)); setlocale(LC_NUMERIC, "POSIX"); |