diff options
author | yyamano <yyamano> | 2017-02-01 01:58:52 +0000 |
---|---|---|
committer | yyamano <yyamano> | 2017-02-01 01:58:52 +0000 |
commit | 395c1b54633cce9e2df4b13f8233651e747aae7a (patch) | |
tree | de318f68600af7ecdc7e0c0172eaa1643cfaf7ac /security/mozilla-rootcerts | |
parent | 56a33c87235e2c7fe42e6d159e2f60e1dda8c242 (diff) | |
download | pkgsrc-395c1b54633cce9e2df4b13f8233651e747aae7a.tar.gz |
Set LC_ALL=C to avoid gawk's output data corruption
Fixed PR pkg/51802.
Diffstat (limited to 'security/mozilla-rootcerts')
-rw-r--r-- | security/mozilla-rootcerts/files/mozilla-rootcerts.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/security/mozilla-rootcerts/files/mozilla-rootcerts.sh b/security/mozilla-rootcerts/files/mozilla-rootcerts.sh index dbcfbb065af..781e75d9158 100644 --- a/security/mozilla-rootcerts/files/mozilla-rootcerts.sh +++ b/security/mozilla-rootcerts/files/mozilla-rootcerts.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: mozilla-rootcerts.sh,v 1.10 2016/03/03 03:02:21 dsainty Exp $ +# $NetBSD: mozilla-rootcerts.sh,v 1.11 2017/02/01 01:58:52 yyamano Exp $ # # This script is meant to be used as follows: # @@ -131,9 +131,10 @@ extract) # "mozilla-rootcert-<n>.pem" in the current working directory. # # gawk will corrupt the output data stream in multibyte locales, - # so force the locale to "C". + # so force the locale to "C". + # Setting just LANG is not enough. LC_ALL has higher priority. # - cat "$certfile" | LANG=C ${AWK} -v OPENSSL=${OPENSSL} ' + cat "$certfile" | LC_ALL=C LANG=C ${AWK} -v OPENSSL=${OPENSSL} ' function base8to10(o, octal, decimal, power, i, n) { decimal = 0 n = split(o, octal, "") |