pkgsrc-Changes archive

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

CVS commit: pkgsrc/security/mozilla-rootcerts/files



Module Name:    pkgsrc
Committed By:   yyamano
Date:           Wed Feb  1 01:58:52 UTC 2017

Modified Files:
        pkgsrc/security/mozilla-rootcerts/files: mozilla-rootcerts.sh

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


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 \
    pkgsrc/security/mozilla-rootcerts/files/mozilla-rootcerts.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/security/mozilla-rootcerts/files/mozilla-rootcerts.sh
diff -u pkgsrc/security/mozilla-rootcerts/files/mozilla-rootcerts.sh:1.10 pkgsrc/security/mozilla-rootcerts/files/mozilla-rootcerts.sh:1.11
--- pkgsrc/security/mozilla-rootcerts/files/mozilla-rootcerts.sh:1.10   Thu Mar  3 03:02:21 2016
+++ pkgsrc/security/mozilla-rootcerts/files/mozilla-rootcerts.sh        Wed Feb  1 01:58:52 2017
@@ -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, "")



Home | Main Index | Thread Index | Old Index