This patch allows providing "-pc LONGEST" argument in lowercase. Bug reported by chaered: https://bugs.launchpad.net/ubuntu/+source/speech-tools/+bug/723854 Author: Sergio Oller Forwarded: https://github.com/festvox/speech_tools/pull/6 --- a/main/ch_wave_main.cc +++ b/main/ch_wave_main.cc @@ -203,7 +203,7 @@ int main (int argc, char *argv[]) wave_info(sigload); else if (al.present("-pc")) { - if ((al.val("-pc") == "longest") && + if ((downcase(al.val("-pc")) == "longest") && (sig.num_samples() < sigload.num_samples())) sig.resize(sigload.num_samples()); else /* "first" or sig is longer */