diff options
author | yyamano <yyamano@pkgsrc.org> | 2017-02-01 01:58:52 +0000 |
---|---|---|
committer | yyamano <yyamano@pkgsrc.org> | 2017-02-01 01:58:52 +0000 |
commit | e09223f31000a41ae60a6948ac5ed3b997d2e416 (patch) | |
tree | 2bc92425d830c3e069ac15d0fe391f8fe967a7eb | |
parent | 8ff20763d2046841cf2bc2835227f81e6be07eeb (diff) | |
download | pkgsrc-e09223f31000a41ae60a6948ac5ed3b997d2e416.tar.gz |
Set LC_ALL=C to avoid gawk's output data corruption
Fixed PR pkg/51802.
-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, "") |