bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Failure of removing pattern.


From: Chet Ramey
Subject: Re: Failure of removing pattern.
Date: Sun, 05 Mar 2006 16:51:37 -0500
User-agent: Thunderbird 1.5 (Macintosh/20051201)

kenichiro.shirose.jm@hitachi.com wrote:

> Bash Version: 3.1
> Patch Level: 0
> Release Status: release
> 
> Description:
>         A refference to a shell variable doesn't work under specific case.
>         The result of the following operations isn't shown and prompt doesn't
>         return when environment variable LANG is Ja_JP on AIX 5.2L
>         $ i=123456789012l
>         $ echo ${i%l}
>         (Pronput doesn't return...)
> 
> Fix:
>         This problem is avoidable by the modification shown below:
>         Replace l. 3365 in subst.c ("ret = wcsdup (wparam);")
>         to the following two lines:
> 
>             ret = (wchar_t *) malloc((size_t)(n + 1) * sizeof(wchar_t));
>             wcscpy(ret, wparam);
> </output>

I assume that this version of AIX has wcsdup().  Does that expansion
work when you #undef HAVE_WCSDUP in config.h and use the replacement
version in subst.c?

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                           Live Strong.  No day but today.
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]