From f33df721a788c6ce09f645b62902fc08766c9e2c Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Wed, 8 Jan 2020 16:13:03 +0100 Subject: [vbox-src] fix usb attach script & UTF-8 --- core/modules/vbox-src/data/opt/openslx/bin/attach-usb-to-vbox | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/modules/vbox-src/data/opt/openslx/bin/attach-usb-to-vbox b/core/modules/vbox-src/data/opt/openslx/bin/attach-usb-to-vbox index dff01144..dfe6c2a6 100755 --- a/core/modules/vbox-src/data/opt/openslx/bin/attach-usb-to-vbox +++ b/core/modules/vbox-src/data/opt/openslx/bin/attach-usb-to-vbox @@ -17,6 +17,13 @@ fi export VBOX_IPC_SOCKETID="$user" +# set default locale to make sure the vboxmanage output is not broken on UTF-8 chars +[ -s "/etc/default/locale" ] && . /etc/default/locale +[ -z "LANG" ] && LANG="de_DE.UTF-8" +export LANG +# make sure LC_ALL does not fiddle with this +unset LC_ALL + # find UUID of running VM declare -r vmuuid="$("$_vboxmanage" list runningvms | awk '{print $NF}' | tr -d '{}')" if [ -z "$vmuuid" ]; then -- cgit v1.2.3-55-g7522