pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/mozilla-rootcerts/files Set LC_ALL=C to avoid...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/76d79bd0c22c
branches:  trunk
changeset: 357909:76d79bd0c22c
user:      yyamano <yyamano%pkgsrc.org@localhost>
date:      Wed Feb 01 01:58:52 2017 +0000

description:
Set LC_ALL=C to avoid gawk's output data corruption
Fixed PR pkg/51802.

diffstat:

 security/mozilla-rootcerts/files/mozilla-rootcerts.sh |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r 69d2c56b3e85 -r 76d79bd0c22c security/mozilla-rootcerts/files/mozilla-rootcerts.sh
--- a/security/mozilla-rootcerts/files/mozilla-rootcerts.sh     Tue Jan 31 22:24:28 2017 +0000
+++ b/security/mozilla-rootcerts/files/mozilla-rootcerts.sh     Wed Feb 01 01:58:52 2017 +0000
@@ -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 @@
        # "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, "")



Home | Main Index | Thread Index | Old Index