Re: [PATCH] perf, tools, stat: Force C numeric locale for CSV mode
From: Andi Kleen
Date: Tue Jan 05 2016 - 20:37:42 EST
> > I usually work around it by using -x\; instead
> >
> > But the , problem should be still fixed.
>
> Humm, what is the problem then of doing, for example in my case, with a
> LC_ALL=pt_BR, that uses commans as the decimal separator:
It's user unfriendly and unobvious. Also you end up with subtly broken
files,. And it would also change the locale of the measured program which
may not be intended.
Plus the floating point values with comma cannot be parsed by programs
that don't know your locale (that was the problem with pmu-tools)
> Using -x\; looks sane and shorter tho, perhaps even -x:, to save one
> extra char.
Even with that there is the problem that you end up with numbers that
cannot be parsed by locale unaware programs.
CSV is intended for other programs so it shouldn't be messed up like
this.
-Andi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/