From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752617AbcAFBhj (ORCPT ); Tue, 5 Jan 2016 20:37:39 -0500 Received: from one.firstfloor.org ([193.170.194.197]:44707 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752025AbcAFBhg (ORCPT ); Tue, 5 Jan 2016 20:37:36 -0500 Date: Wed, 6 Jan 2016 02:37:34 +0100 From: Andi Kleen To: Arnaldo Carvalho de Melo Cc: Andi Kleen , Jiri Olsa , jolsa@kernel.org, mingo@kernel.org, linux-kernel@vger.kernel.org, Andi Kleen Subject: Re: [PATCH] perf, tools, stat: Force C numeric locale for CSV mode Message-ID: <20160106013734.GM15533@two.firstfloor.org> References: <1452021465-17831-1-git-send-email-andi@firstfloor.org> <20160105210501.GA23394@krava.local> <20160105211757.GB25916@kernel.org> <20160105212839.GL15533@two.firstfloor.org> <20160105232723.GA6620@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160105232723.GA6620@kernel.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > 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