diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-10-24 00:53:33 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-10-24 00:53:33 +0100 |
| commit | 7f6314d6efdc3acec9587eb53b78b59cd6475de8 (patch) | |
| tree | ab3c5a2a143904b468291d93ec8b4bf662019712 /src | |
| parent | 3ec95c25f35b3eb712b25831a7f6438ea41bc963 (diff) | |
| parent | 65277788d432036c5d58f4c50cd3e003e1adc2b4 (diff) | |
Merge branch '1.0' of ssh://main.carlh.net/home/carl/git/libdcp into 1.0
Diffstat (limited to 'src')
| -rw-r--r-- | src/raw_convert.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/raw_convert.cc b/src/raw_convert.cc index 281772e7..35a57a52 100644 --- 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; } |
