summaryrefslogtreecommitdiff
path: root/mk/checksum
diff options
context:
space:
mode:
authortron <tron>2013-01-28 11:29:29 +0000
committertron <tron>2013-01-28 11:29:29 +0000
commit8f033dbb5c5a2f87f03debfc080ec59e4f336a35 (patch)
treeaf5575d308ec207c5b49a99c01c9317465528712 /mk/checksum
parent194769e50b5b0bae673f7e04f0fabda644c14f92 (diff)
downloadpkgsrc-8f033dbb5c5a2f87f03debfc080ec59e4f336a35.tar.gz
Also fix the "patch" target for patch files with broken UTF-8 sequences
in them under Mac OS X Mountain Lion. The previous change only fixed the "makedistinfo" target.
Diffstat (limited to 'mk/checksum')
-rwxr-xr-xmk/checksum/checksum5
1 files changed, 4 insertions, 1 deletions
diff --git a/mk/checksum/checksum b/mk/checksum/checksum
index 6bba786bd60..dd617b48778 100755
--- a/mk/checksum/checksum
+++ b/mk/checksum/checksum
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: checksum,v 1.13 2012/10/13 15:31:23 jmmv Exp $
+# $NetBSD: checksum,v 1.14 2013/01/28 11:29:29 tron Exp $
#
# Copyright (c) 2006, 2007 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -79,6 +79,9 @@ set -e # exit on errors
: ${SED:=sed}
: ${TEST:=test}
+# Work around problematic UTF-8 handling in "sed" under Mac OS X Mountain Lion.
+LC_ALL=C; export LC_ALL
+
self="${0##*/}"
usage() {