diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2007-10-04 20:18:04 -0300 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 18:22:27 +0100 |
commit | cda480d29c9ea7d28b79669fcd34c6da5b4f5416 (patch) | |
tree | 2d14ac8d2719a1406eb74a3c77b30f55f4541ee6 | |
parent | 48c24d0b1bf75a03acc06b96481def95d35a3704 (diff) | |
download | vyos-live-build-cda480d29c9ea7d28b79669fcd34c6da5b4f5416.tar.gz vyos-live-build-cda480d29c9ea7d28b79669fcd34c6da5b4f5416.zip |
syslinux: force latin1 encoding on texts used for labels
syslinux cannot handle utf-8 encoding and then proper encoding needed
to be enforced while printing the label texts.
-rwxr-xr-x | helpers/lh_binary_syslinux | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/helpers/lh_binary_syslinux b/helpers/lh_binary_syslinux index 655a424f5..ca6d7c8cc 100755 --- a/helpers/lh_binary_syslinux +++ b/helpers/lh_binary_syslinux @@ -68,10 +68,17 @@ Restore_cache cache/packages_binary Install_package # Local functions +Utf8_to_latin1 () +{ + VALUE="${1}" + + echo "${VALUE}" | iconv -f utf-8 -t latin1 +} + Syslinux_memtest_entry () { LABEL="${1}" - MENULABEL="${2}" + MENULABEL=`Utf8_to_latin1 "${2}"` KERNEL="${3}" # syslinux << 3.36 lacks support to file/path @@ -92,6 +99,7 @@ Syslinux_memtest_entry () Syslinux_live_entry () { LABEL="${1}" + MENULABEL=`Utf8_to_latin1 "${2}"` MENULABEL="${2}" KERNEL="${3}" INITRD="${4}" |