tag 490143 patch
thanks

Thanks Milan,

It will be fix in next upload.

Cheers,
Kartik

On Thu, Jul 10, 2008 at 1:46 PM, Milan Zamazal <[EMAIL PROTECTED]> wrote:
> Package: speech-tools
> Version: 1:1.2.96~beta-2
> Severity: normal
>
> The package doesn't honor the value of TMPDIR environment variable
> despite it is intended to do it.  You can check it e.g. in Festival by
> calling
>
>  % export TMPDIR=/home/pdm/tmp
>  % festival
>  Festival Speech Synthesis System 1.96:beta July 2004
>  Copyright (C) University of Edinburgh, 1996-2004. All rights reserved.
>  For details type `(festival_warranty)'
>  festival> (make_tmp_filename)
>  "/tmp/est_13453_00000"
>
> The following patch fixes it.  Then the above call produces the correct
> result
>
>  festival> (make_tmp_filename)
>  "/home/pdm/tmp/est_13653_00000"
>
> diff -ru speech-tools-1.2.96~beta.orig/utils/EST_cutils.c 
> speech-tools-1.2.96~beta/utils/EST_cutils.c
> --- speech-tools-1.2.96~beta.orig/utils/EST_cutils.c    2004-06-21 
> 15:40:39.000000000 +0200
> +++ speech-tools-1.2.96~beta/utils/EST_cutils.c 2008-07-10 10:14:04.000000000 
> +0200
> @@ -71,8 +71,8 @@
>     char *t1;
>     int i,j;
>
> -    if (((tdir=getenv("TMPDIR")) == NULL) ||
> -       ((tdir=getenv("TEMP")) == NULL) ||
> +    if (((tdir=getenv("TMPDIR")) == NULL) &&
> +       ((tdir=getenv("TEMP")) == NULL) &&
>        ((tdir=getenv("TMP")) == NULL))
>        tdir = "/tmp";

-- 
 Cheers,
 Kartik Mistry | 0xD1028C8D | IRC: kart_
 Blogs: {ftbfs,kartikm}.wordpress.com



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to