diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2023-10-11 07:54:12 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2023-10-11 07:56:27 +0000 |
commit | 9fee35128080f036c7b318cbbe20067ccca409db (patch) | |
tree | c6dfa3c0e24a3cad296280761ebc8eaeadad8492 /Mk/Scripts/dialog4ports.sh | |
parent | 27b1250d59828d57dde36cb34a9fe5fbf51049c4 (diff) | |
download | ports-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.sh | 4 |
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 |