sox-devel@lists.sourceforge.net unofficial mirror
 help / color / mirror / code / Atom feed
From: Eric Wong <normalperson@yhbt.net>
To: sox-devel@lists.sourceforge.net
Subject: Re: Bug in noiseprof and solution
Date: Mon, 22 Jul 2013 20:48:25 +0000	[thread overview]
Message-ID: <20130722204825.GA14902@dcvr.yhbt.net> (raw)
In-Reply-To: <51ED91CD.9090605@ryxeo.com>

Eric Seigne <eric.seigne@ryxeo.com> 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, 

<snip>

> 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

  reply	other threads:[~2013-07-22 21:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-22 20:10 Bug in noiseprof and solution Eric Seigne
2013-07-22 20:48 ` Eric Wong [this message]
2013-07-22 22:29 ` Ulrich Klauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.sourceforge.net/lists/listinfo/sox-devel

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130722204825.GA14902@dcvr.yhbt.net \
    --to=sox-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/sox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).