[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Failure of removing pattern.
From: |
kenichiro . shirose . jm |
Subject: |
Failure of removing pattern. |
Date: |
Wed, 1 Mar 2006 15:44:50 +0900 |
Here is a bug report generated by bashbug.
<output>
Configuration Information [Automatically generated, do not change]:
Machine: powerpc
OS: aix5.2.0.0
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='powerpc'
-DCONF_OSTYPE='aix5.2.0.0' -DCONF_MACHTYPE='powerpc-ibm-aix5.2.0.0'
-DCONF_VENDOR='ibm'
-DLOCALE
DIR='/users/hit/hitach01/src/bash-trace//share/locale' -DPACKAGE='bash'
-DSHELL
-DHAVE_CONFIG_H -I. -I. -I./include -I./lib -I./lib/intl
-I/users/hit/hitach01/src/bash-3.1/lib/intl -lm
uname output: AIX sr2_n24 2 5 00C500314C00
Machine Type: powerpc-ibm-aix5.2.0.0
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>
----------------------------------------------
Ken'ichiro Shirose
kenichiro.shirose.jm@hitachi.com
Hitachi, Ltd.
Goverment & Public Corporation Information
Systems Division
----------------------------------------------
- Failure of removing pattern.,
kenichiro . shirose . jm <=