diff options
author | Jonathan Bauer | 2020-01-08 16:13:03 +0100 |
---|---|---|
committer | Jonathan Bauer | 2020-01-08 16:13:03 +0100 |
commit | f33df721a788c6ce09f645b62902fc08766c9e2c (patch) | |
tree | 50c671b49cdfd492e18ab2ae5d5baa8cc43bba94 | |
parent | [run-virt] fix bad VM_IDs (diff) | |
download | mltk-f33df721a788c6ce09f645b62902fc08766c9e2c.tar.gz mltk-f33df721a788c6ce09f645b62902fc08766c9e2c.tar.xz mltk-f33df721a788c6ce09f645b62902fc08766c9e2c.zip |
[vbox-src] fix usb attach script & UTF-8
-rwxr-xr-x | core/modules/vbox-src/data/opt/openslx/bin/attach-usb-to-vbox | 7 |
1 files changed, 7 insertions, 0 deletions
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 |