diff --git a/usr.sbin/freebsd-update/freebsd-update.sh b/usr.sbin/freebsd-update/freebsd-update.sh index 3d6d52ec33cd..9db0c6cd928d 100644 --- a/usr.sbin/freebsd-update/freebsd-update.sh +++ b/usr.sbin/freebsd-update/freebsd-update.sh @@ -1926,6 +1926,9 @@ cmd_rollback () { # Make sure we find utilities from the base system export PATH=/sbin:/bin:/usr/sbin:/usr/bin:${PATH} +# Set LC_ALL in order to avoid problems with character ranges like [A-Z]. +export LC_ALL=C + get_params $@ for COMMAND in ${COMMANDS}; do cmd_${COMMAND} diff --git a/usr.sbin/portsnap/portsnap/portsnap.sh b/usr.sbin/portsnap/portsnap/portsnap.sh index 6cecd49a2456..e13b87df4b96 100644 --- a/usr.sbin/portsnap/portsnap/portsnap.sh +++ b/usr.sbin/portsnap/portsnap/portsnap.sh @@ -1032,6 +1032,9 @@ cmd_update() { # Make sure we find utilities from the base system export PATH=/sbin:/bin:/usr/sbin:/usr/bin:${PATH} +# Set LC_ALL in order to avoid problems with character ranges like [A-Z]. +export LC_ALL=C + get_params $@ for COMMAND in ${COMMANDS}; do cmd_${COMMAND}