summaryrefslogtreecommitdiff
path: root/tests/perf_pmu.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2018-03-27 15:20:51 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2018-03-27 20:59:17 +0100
commit3fa0b027304ec28cd24b314349d3731b55dfcc0a (patch)
tree23e8601be2d2dfba4b1cb55614411f7585aa0c9a /tests/perf_pmu.c
parenta9741da52ad1963f7632ef1e852cbe1c3bcc601e (diff)
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>
Diffstat (limited to 'tests/perf_pmu.c')
0 files changed, 0 insertions, 0 deletions