aboutsummaryrefslogtreecommitdiff
path: root/Mk/Scripts/dialog4ports.sh
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2023-10-11 07:54:12 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2023-10-11 07:56:27 +0000
commit9fee35128080f036c7b318cbbe20067ccca409db (patch)
treec6dfa3c0e24a3cad296280761ebc8eaeadad8492 /Mk/Scripts/dialog4ports.sh
parent27b1250d59828d57dde36cb34a9fe5fbf51049c4 (diff)
downloadports-9fee35128080f036c7b318cbbe20067ccca409db.tar.gz
ports-9fee35128080f036c7b318cbbe20067ccca409db.zip
dialog: force UTF-8 locale
On some terminal, namely "putty" and "linux", the unicode capability are not properly exposed, resulting in a not so nice UI, forcing the env to be unicode friendly with executing the DIDALOG commnands make the output nice in those environements
Diffstat (limited to 'Mk/Scripts/dialog4ports.sh')
-rw-r--r--Mk/Scripts/dialog4ports.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mk/Scripts/dialog4ports.sh b/Mk/Scripts/dialog4ports.sh
index de62a91b583f..ba8dbb7cd48d 100644
--- a/Mk/Scripts/dialog4ports.sh
+++ b/Mk/Scripts/dialog4ports.sh
@@ -42,9 +42,9 @@ fi
# Clear environment of PKGNAME or the dialog will show on older versions
# that do not understand -v.
if ! env -u PKGNAME ${DIALOG4PORTS} -v > /dev/null 2>&1; then
- exec $DIALOG4PORTS > $OPTIONSFILE 2>&1
+ exec env LC_ALL=C.UTF-8 $DIALOG4PORTS > $OPTIONSFILE 2>&1
fi
# Newer versions use stderr to work around a jail issue
# http://lists.freebsd.org/pipermail/freebsd-ports/2013-March/082383.html
-exec $DIALOG4PORTS 2> $OPTIONSFILE
+exec env LC_ALL=C.UTF-8 $DIALOG4PORTS 2> $OPTIONSFILE