From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Wong Newsgroups: gmane.comp.audio.sox.devel Subject: Re: Bug in noiseprof and solution Date: Mon, 22 Jul 2013 20:48:25 +0000 Message-ID: <20130722204825.GA14902@dcvr.yhbt.net> References: <51ED91CD.9090605@ryxeo.com> Reply-To: sox-devel@lists.sourceforge.net NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1374527096 16306 80.91.229.3 (22 Jul 2013 21:04:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Jul 2013 21:04:56 +0000 (UTC) To: sox-devel@lists.sourceforge.net Original-X-From: sox-devel-bounces@lists.sourceforge.net Mon Jul 22 23:04:57 2013 Return-path: Envelope-to: gcasd-sox-devel@m.gmane.org X-ACL-Warn: Content-Disposition: inline In-Reply-To: <51ED91CD.9090605@ryxeo.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Score: -1.4 (-) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.4 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain X-Headers-End: 1V1NHk-0003Xm-7h X-BeenThere: sox-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: sox-devel-bounces@lists.sourceforge.net Xref: news.gmane.org gmane.comp.audio.sox.devel:302 Archived-At: Received: from lists.sourceforge.net ([216.34.181.88]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V1NHr-0007Mu-F6 for gcasd-sox-devel@m.gmane.org; Mon, 22 Jul 2013 23:04:55 +0200 Received: from localhost ([127.0.0.1] helo=sfs-ml-2.v29.ch3.sourceforge.com) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1V1NHl-0002Kx-IA; Mon, 22 Jul 2013 21:04:49 +0000 Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1V1NHl-0002Kr-1B for sox-devel@lists.sourceforge.net; Mon, 22 Jul 2013 21:04:49 +0000 Received: from dcvr.yhbt.net ([64.71.152.64]) by sog-mx-4.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1V1NHk-0003Xm-7h for sox-devel@lists.sourceforge.net; Mon, 22 Jul 2013 21:04:49 +0000 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id EDA921F6FE; Mon, 22 Jul 2013 20:48:25 +0000 (UTC) Eric Seigne wrote: > Here is a bug on "noiseprof" i've found with a qt/c++ program linked > with libsox: i'm french and my LC_ALL is fr_FR,UTF-8, > here is the "/tmp/speech,noise-profile" file: > > Channel 0: 3,047390, 1,534390, 4,114414, 3,004703, 1,243448, 2,580552, > please have a look at "," wich is used twice, one for decimal separator > and one for fields separator ... so noiseprof does not work ! > > if i add > > setlocale(LC_ALL, "C"); I think you can use LC_NUMERIC instead of LC_ALL to limit the scope of the locale change. > and everything works well. > > So is this bug resolved with last git version ? It does not look to be, it looks like it's caused by the use of "%f" with fprintf in src/noiseprof.c I'm think the SoX maintainers would be interested in a portable fix if you can provide one. ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk