coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tests: env-s.pl: avoid spurious failure on OS X


From: Jim Meyering
Subject: Re: tests: env-s.pl: avoid spurious failure on OS X
Date: Mon, 20 Sep 2021 11:02:37 -0700

On Mon, Sep 20, 2021 at 8:18 AM Pádraig Brady <P@draigbrady.com> wrote:
> On 20/09/2021 15:19, Jim Meyering wrote:
> > On Mon, Sep 20, 2021 at 3:14 AM Pádraig Brady <P@draigbrady.com> wrote:
> >> On 20/09/2021 06:46, Jim Meyering wrote:
> >>> I noticed/fixed a spurious test failure on OS X:
> >>
> >> Oh interesting.
> >> This seems like a more general issue.
> >> Should we do this more centrally by adding to the list in
> >> tests/envvar-check
> >
> > Adding that name to the list in tests/envvar-check would have no
> > effect, since this case is not about inheriting from the original
> > environment, but rather about something that's inserted upon each
> > "env" invocation.
>
> I don't fully understand where that env var is being set,
> but don't see a specific issue with the patch, so please push.

Done.

> BTW that test should not be dependent on the host env(1) since:
> https://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=c8539d36c

Right. it's not.
I confess I did not root-cause, but it seems to be something deeper.
That envvar, __CF_USER_TEXT_ENCODING is referenced e.g., here
https://developer.apple.com/library/archive/technotes/tn2228/_index.html
and associated with a file, ~/.CFUserTextEncoding.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]