summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2013-04-05 11:33:57 +0000
committerThierry Vignaud <tv@mageia.org>2013-04-05 11:33:57 +0000
commit7625287416073a669b3f7d4a8836a4bcdaf0d563 (patch)
tree9b5cffe656c81f9c4be43eea7bd35c043f345d4f /perl-install/bootloader.pm
parent54643229cb7453f41e082a12d1ea927432437b57 (diff)
downloaddrakx-7625287416073a669b3f7d4a8836a4bcdaf0d563.tar
drakx-7625287416073a669b3f7d4a8836a4bcdaf0d563.tar.gz
drakx-7625287416073a669b3f7d4a8836a4bcdaf0d563.tar.bz2
drakx-7625287416073a669b3f7d4a8836a4bcdaf0d563.tar.xz
drakx-7625287416073a669b3f7d4a8836a4bcdaf0d563.zip
assume grub2.cfg is UTF-8 encoded
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r--perl-install/bootloader.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index b1d48cd65..461f94760 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -239,7 +239,7 @@ sub read_grub2 {
$bootloader{timeout} = $h{GRUB_TIMEOUT};
$bootloader{entries} = [];
my $entry;
- foreach (cat_("$::prefix/boot/grub2/grub.cfg")) {
+ foreach (cat_utf8("$::prefix/boot/grub2/grub.cfg")) {
next if /^#/;
if (/menuentry\s+['"]([^']+)["']/) {
push @{$bootloader{entries}}, $entry if $entry;