summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-01-23 14:39:16 +0000
committerDavid Robillard <d@drobilla.net>2008-01-23 14:39:16 +0000
commitbcfe02b21c62d199b735ac01422080017189f6d9 (patch)
tree2ebdcbf29ca846d9d936d0386a78cd575e299f1d /src
parenteec645b6a811150ae716b7eb591149ad93294481 (diff)
downloadlilv-bcfe02b21c62d199b735ac01422080017189f6d9.tar.gz
lilv-bcfe02b21c62d199b735ac01422080017189f6d9.tar.bz2
lilv-bcfe02b21c62d199b735ac01422080017189f6d9.zip
Fix decimal point kludge.
git-svn-id: http://svn.drobilla.net/lad/slv2@1102 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/value.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/value.c b/src/value.c
index aed4f65..4724a23 100644
--- a/src/value.c
+++ b/src/value.c
@@ -50,9 +50,9 @@ slv2_value_new(SLV2World world, SLV2ValueType type, const char* str)
struct lconv* locale = localeconv();
if (locale->decimal_point && strcmp(locale->decimal_point, ".")) {
assert(strlen(locale->decimal_point) == 1);
- char* dec = strchr(str, locale->decimal_point[0]);
+ char* dec = strchr(str, '.');
if (dec)
- *dec = '.';
+ *dec = locale->decimal_point[0];
}
}