]> granicus.if.org Git - sysstat/commit
SVG: Make SVG code locale independent
authorSebastien GODARD <sysstat@users.noreply.github.com>
Mon, 21 Mar 2016 16:50:27 +0000 (17:50 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Mon, 21 Mar 2016 16:50:27 +0000 (17:50 +0100)
commitd7153d69570852e82e321e1928619324d66d93d6
tree2865c68c461d85df6904fbc00db74d76fcc48eea
parent2e8071e0a39670c48bedc25ba45e31dbc92de3dc
SVG: Make SVG code locale independent

Graphs could not be displayed if corresponding SVG code had been
generated on machines with specific locales.

Eg: If you set your locale to, say, fr_FR then here is a sample SVG
code you could get:

...
<path id="g9p0" d=" M311,2663,54 L613,1446,20 L913,423,75 (...)
...

To avoid the confusion, this patch sets the LC_NUMERIC to "C" so that a
decimal point is used instead of a comma:

...
<path id="g9p0" d=" M311,2663.54 L613,1446.20 L913,423.75 (...)
...

Resulting SVG output can now be displayed whatever locale is used.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
sadf.c