https://bugs.freedesktop.org/show_bug.cgi?id=105712
Chris Wilson chris@chris-wilson.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #11 from Chris Wilson chris@chris-wilson.co.uk --- Thank you for the bug report and the invaluable testing.
commit 3fa0b027304ec28cd24b314349d3731b55dfcc0a (HEAD, upstream/master) Author: Chris Wilson chris@chris-wilson.co.uk Date: Tue Mar 27 15:20:51 2018 +0100
overlay: Call setlocale around strtod
strtod() is locale-dependent. The decimal conversion depends on the radix character ('.' for some of us like myself) varies by locale. As the kernel reports its values using the "C" locale, we need to switch to that when parsing; and switch back before reporting to the user.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105712 Signed-off-by: Chris Wilson chris@chris-wilson.co.uk Cc: Tvrtko Ursulin tvrtko.ursulin@intel.com Reviewed-by: Tvrtko Ursulin tvrtko.ursulin@intel.com