[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Invalid byte sequence under UTF-8 locale generates a segmentation fa
Eduardo A . Bustamante López
Re: Invalid byte sequence under UTF-8 locale generates a segmentation fault when using printf %q (ansic_quote)
Thu, 13 Feb 2014 16:47:46 -0800
On Thu, Feb 13, 2014 at 04:01:21PM -0500, Chet Ramey wrote:
> On 2/13/14 2:32 PM, Eduardo A. Bustamante López wrote:
> > On Thu, Feb 13, 2014 at 11:37:27AM -0500, Chet Ramey wrote:
> >> On 2/13/14 11:33 AM, Eduardo A. Bustamante López wrote:
> >>> Using an invalid byte sequence with printf %q segfaults bash, for a
> >>> UTF-8 locale.
> I think it depends on your system and locale. I only had the third
> example produce a seg fault, but it was enough. Try the attached
> updated patch.
Perfect. This new patch passes all the tests I setup. I confirm that
Eduardo Alan Bustamante López