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.
This commit is contained in:
parent
c5a9b5a6c3
commit
aed8d437ac
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue