pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/51802: security/mozilla-rootcerts doesn't build with gawk
The following reply was made to PR pkg/51802; it has been noted by GNATS.
From: Joerg Sonnenberger <joerg%bec.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: pkg-manager%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, pkgsrc-bugs%netbsd.org@localhost,
diro%nixsyspaus.org@localhost
Subject: Re: pkg/51802: security/mozilla-rootcerts doesn't build with gawk
Date: Fri, 27 Jan 2017 02:39:01 +0100
On Thu, Jan 26, 2017 at 11:50:00PM +0000, Yuji Yamano wrote:
> The following reply was made to PR pkg/51802; it has been noted by GNATS.
>
> From: Yuji Yamano <yyamano%kt.rim.or.jp@localhost>
> To: rodent%NetBSD.org@localhost
> Cc: gnats-bugs%NetBSD.org@localhost, pkgsrc-bugs%netbsd.org@localhost, gnats-admin%netbsd.org@localhost
> Subject: Re: pkg/51802: security/mozilla-rootcerts doesn't build with gawk
> Date: Fri, 27 Jan 2017 08:46:35 +0900 (JST)
>
> On Thu, 26 Jan 2017 18:21:21 -0500, rodent%NetBSD.org@localhost wrote:
>
> > security/mozilla-rootcerts/files/mozilla-rootcerts.sh sets LANG to C. Perhaps,
> > it needs to set some of the other locale envvars too?
>
> I guess you need to set LC_ALL=C. Here is code snippet from gawk's main.c:
>
> const char *env_lc;
>
> env_lc = getenv("LC_ALL");
> if (env_lc == NULL)
> env_lc = getenv("LANG");
> if (env_lc != NULL && env_lc[1] == '\0' && tolower(env_lc[0]) == 'c')
> gawk_mb_cur_max = 1;
Seriously?! That's complete f**ked up. The correct way to query the
locale looks different...
Joerg
Home |
Main Index |
Thread Index |
Old Index