Re: Can somebody explain to me what u32tochar in /lib/sh/unicode.c is trying to do?

2012-03-10 Thread dethrophes
Am 10.03.2012 23:17, schrieb Chet Ramey: On 3/7/12 12:07 AM, John Kearney wrote: You really should stop using this function. It is just plain wrong, and is not predictable. It may enocde BIG5 and SJIS but is is more by accident that intent. If you want to do something like this then do it pro

Re: Can somebody explain to me what u32tochar in /lib/sh/unicode.c is trying to do?

2012-03-10 Thread Chet Ramey
On 3/7/12 12:07 AM, John Kearney wrote: > You really should stop using this function. It is just plain wrong, and > is not predictable. > > > It may enocde BIG5 and SJIS but is is more by accident that intent. > > If you want to do something like this then do it properly. > > basically all of t

Re: Please remove iconv_open (charset, "ASCII"); from unicode.c

2012-03-10 Thread dethrophes
Am 10.03.2012 22:22, schrieb Chet Ramey: On 3/6/12 11:47 PM, John Kearney wrote: Hi chet can you please remove the following from the unicode.c file localconv = iconv_open (charset, "ASCII"); Yeah, that was a typo. It should be iconv_open ("ASCII", "UTF-8"); as originally in gnulib/coreutils.

Re: Please remove iconv_open (charset, "ASCII"); from unicode.c

2012-03-10 Thread Chet Ramey
On 3/6/12 11:47 PM, John Kearney wrote: > > Hi chet can you please remove the following from the unicode.c file > > localconv = iconv_open (charset, "ASCII"); Yeah, that was a typo. It should be iconv_open ("ASCII", "UTF-8"); as originally in gnulib/coreutils. Thanks for pointing it out; I ove

Re: [PATCH] Defer SIGCHLD trap handler when waitchld is called from within the signal handler

2012-03-10 Thread Chet Ramey
On 3/6/12 7:59 AM, Siddhesh Poyarekar wrote: > Bash Version: 4.2 > Patch Level: 20 > Release Status: release > > Description: > > When a SIGCHLD is received in job control mode and a handler for the > signal is installed, bash calls the trap handler within the signal > handler itself. This is un

Re: Process group id of first command in command substitution (bash4 vs bash3)

2012-03-10 Thread Chet Ramey
On 2/20/12 1:25 PM, Roman Rakus wrote: > I'm not sure if it's a bug or not, but there is change between old bash 3.2 > and bash 4.2. > When you run a script: > set -m > $(sleep 1; sleep 2) > > in bash 4.2 the first sleep has same group id as parent shell. However in > bash 3.2 it has different gro

Re: DJGPP build

2012-03-10 Thread Chet Ramey
On 3/5/12 5:21 PM, fabrizio gennari wrote: > Hello. > > I tried to build bash-4.2 for the DJGPP (GNU for MS-DOS) > platform. It had been done before, but the latest available version was > 2.04. > > Something interesting has been found in the process. First: > version.c protects the use of snp