[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20160106013734.GM15533@two.firstfloor.org>
Date: Wed, 6 Jan 2016 02:37:34 +0100
From: Andi Kleen <andi@...stfloor.org>
To: Arnaldo Carvalho de Melo <acme@...nel.org>
Cc: Andi Kleen <andi@...stfloor.org>, Jiri Olsa <jolsa@...hat.com>,
jolsa@...nel.org, mingo@...nel.org, linux-kernel@...r.kernel.org,
Andi Kleen <ak@...ux.intel.com>
Subject: Re: [PATCH] perf, tools, stat: Force C numeric locale for CSV mode
> > 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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists