[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: segment fault on gnun-add-fuzzy-diff
From: |
Ineiev |
Subject: |
Re: segment fault on gnun-add-fuzzy-diff |
Date: |
Mon, 16 Jan 2017 13:14:02 -0500 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Hello, Rafael!
On Mon, Jan 16, 2017 at 12:23:53AM -0200, Rafael Fontenelle wrote:
>
> I'm getting "segment fault" when calling 'gnun-add-fuzzy-diff', more
> specifically when the sed script 'add-fuzzy-diff' is called. This doesn't
> seem to happen when called in english (forced with LC_ALL=C), but happens
> in my locale, pt-br.
>
> This issue happens only in sed version 4.3; with version 4.2 it works just
> fine.
I reproduced this with LC_ALL=en_US.utf8 and LC_ALL=C.UTF-8;
it looks like a bug in processing UTF-8. (BTW GNUN doesn't
pass 'make installcheck').
A smaller test case is
echo 'abcdefgh "014"' \
| sed 's%.*%&\na%;s/^abcdefgh "\([^\n]*\)"[^\n]*\n/\1\n/'
Perhaps GNUN should always invoke sed with the C locale.
> - gnun 0.11-2
I'm just curious what the "-2" is for.
signature.asc
Description: Digital signature