[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] Core dump in gawk 4.2.0
From: |
arnold |
Subject: |
Re: [bug-gawk] Core dump in gawk 4.2.0 |
Date: |
Sun, 10 Dec 2017 11:03:41 -0700 |
User-agent: |
Heirloom mailx 12.4 7/29/08 |
Hi.
"Andrew J. Schorr" <address@hidden> wrote:
> Oops -- I didn't see your patch before hitting send. Looks like you're
> solving it at the source of the problem, so this is a better solution.
Yes. My first impulse was along the lines of your initial fix, but then
I decided to try to figure out how we got a null stptr, since at first
glance, that shouldn't happen.
> On the other hand -- is it possible for a non-empty internationalized
> string to translate to an empty string? If not, might this be a better
> fix?
I think it's better to have the interpreter do what the program says,
which is
fetch the translation for the string
test it for nonzero/nonnull
invert the result
and not try to be too smart otherwise. If some idiot translator
explicitly supplies an empty translation for a nonempty original string,
gawk will still do what the program says it should do.
So, I think I want to leave well enough alone.
Thanks,
Arnold