projects
/
libdcp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
3ec95c2
)
Merge branch '1.0' of ssh://main.carlh.net/home/carl/git/libdcp into 1.0
author
Carl Hetherington
<cth@carlh.net>
Sun, 23 Oct 2016 23:53:33 +0000
(
00:53
+0100)
committer
Carl Hetherington
<cth@carlh.net>
Sun, 23 Oct 2016 23:53:33 +0000
(
00:53
+0100)
src/raw_convert.cc
patch
|
blob
|
history
diff --git
a/src/raw_convert.cc
b/src/raw_convert.cc
index 281772e7a86f4aadd7969932e1d6362853837044..35a57a5293df5986dece3820771cdfe46e77f8e6 100644
(file)
--- a/
src/raw_convert.cc
+++ b/
src/raw_convert.cc
@@
-38,13
+38,15
@@
using std::string;
using std::wstring;
+/** @param v Numeric value as an ASCII string */
static
string
make_raw (string v)
{
struct lconv* lc = localeconv ();
- boost::algorithm::replace_all (v, lc->decimal_point, ".");
+ /* thousands_sep may be . so remove them before changing decimal points */
boost::algorithm::replace_all (v, lc->thousands_sep, "");
+ boost::algorithm::replace_all (v, lc->decimal_point, ".");
return v;
}