You are not logged in.

#1 2025-01-15 10:39:55

e.
Member
Registered: 2025-01-15
Posts: 14

GRUB issue with locale - question marks instead of polish letters

Hi,

I've managed to successfully install Arch Linux on my laptop alongside already existing Windows 8 and now I have a minor yet annoying issue.
When my computer is booting and it enters the GRUB menu, every special polish letter (ćęńśż) that is not a standard latin letter is replaced by a question mark. I suspect that there is some problem with locale, but I can't figure out what exactly is wrong and how to fix it.

My /etc/locale.gen looks like this:

pl_PL.UTF-8 UTF-8

(I've already run locale-gen just to make sure)

/etc/locale.conf

LANG=pl_PL.UTF-8

and /etc/vconsole.conf

KEYMAP=pl

I've tried a bunch of things with those files and nothing seems to work.
After logging into the system the keyboard works just fine, It's just the GRUB that doesn't display polish text properly.

How to fix it?

Offline

#2 2025-01-15 11:10:06

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,641

Re: GRUB issue with locale - question marks instead of polish letters

issues displaying certain characters are font issues, not locale issues. Try configuring grubs font to use unicode.pf2 as detailed in: https://wiki.archlinux.org/title/GRUB/T … tmap_fonts

Offline

#3 2025-01-15 13:22:04

e.
Member
Registered: 2025-01-15
Posts: 14

Re: GRUB issue with locale - question marks instead of polish letters

Still no luck.

pacman -Ql grub | grep pf2

gives me the result of

grub /usr/share/grub/ascii.pf2
grub /usr/share/grub/euro.pf2
grub /usr/share/grub/themes/starfield/dejavu_10.pf2
grub /usr/share/grub/themes/starfield/dejavu_12.pf2
grub /usr/share/grub/themes/starfield/dejavu_14.pf2
grub /usr/share/grub/themes/starfield/dejavu_16.pf2
grub /usr/share/grub/themes/starfield/dejavu_bold_14.pf2
grub /usr/share/grub/unicode.pf2

I tried modifying /etc/default/grub by adding

GRUB_FONT="/usr/share/grub/unicode.pf2"

and running

grub-mkconfig -o /boot/grub/grub.cfg

Then I've even changed it to

GRUB_FONT="/boot/grub/fonts/unicode.pf2"

and none of them are working. I still get question marks in the GRUB menu.

Is there anything else I can do to fix it?

Offline

#4 2025-01-15 15:55:27

seth
Member
Registered: 2012-09-03
Posts: 60,466

Re: GRUB issue with locale - question marks instead of polish letters

Please post your grub.cfg.
You see one question mark per non-ascii glyph? Nothing else?

Offline

#5 2025-01-15 16:29:45

e.
Member
Registered: 2025-01-15
Posts: 14

Re: GRUB issue with locale - question marks instead of polish letters

Yes, that's exactly what I see - one question mark (enclosed in a rectangle box) per one non-ascii character. I've seen other people have issue with multiple digits per character, but that's not my case. I see a single question mark every time there should be a polish letter.

My grub.conf is like this

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="2"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  insmod efi_uga
}

set menu_color_normal=light-blue/black
set menu_color_highlight=light-cyan/blue

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt8'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt8 --hint-efi=hd0,gpt8 --hint-baremetal=ahci0,gpt8  6a2d23b1-658f-498a-aa47-20ba2d895427
else
  search --no-floppy --fs-uuid --set=root 6a2d23b1-658f-498a-aa47-20ba2d895427
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=pl_PL
  insmod gettext
fi
terminal_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=7
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=7
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-6a2d23b1-658f-498a-aa47-20ba2d895427' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod fat
	set root='hd0,gpt7'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7  1B59-3213
	else
	  search --no-floppy --fs-uuid --set=root 1B59-3213
	fi
	echo	'Ładowanie systemu Linux linux...'
	linux	/vmlinuz-linux root=UUID=6a2d23b1-658f-498a-aa47-20ba2d895427 rw zswap.enabled=0 rootfstype=ext4 loglevel=3 quiet
	echo	'Ładowanie początkowego ramdysku...'
	initrd	/intel-ucode.img /initramfs-linux.img
}
submenu 'Opcje zaawansowane dla systemu Arch Linux' $menuentry_id_option 'gnulinux-advanced-6a2d23b1-658f-498a-aa47-20ba2d895427' {
	menuentry 'Arch Linux, z systemem Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-6a2d23b1-658f-498a-aa47-20ba2d895427' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod fat
		set root='hd0,gpt7'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7  1B59-3213
		else
		  search --no-floppy --fs-uuid --set=root 1B59-3213
		fi
		echo	'Ładowanie systemu Linux linux...'
		linux	/vmlinuz-linux root=UUID=6a2d23b1-658f-498a-aa47-20ba2d895427 rw zswap.enabled=0 rootfstype=ext4 loglevel=3 quiet
		echo	'Ładowanie początkowego ramdysku...'
		initrd	/intel-ucode.img /initramfs-linux.img
	}
	menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-6a2d23b1-658f-498a-aa47-20ba2d895427' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod fat
		set root='hd0,gpt7'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7  1B59-3213
		else
		  search --no-floppy --fs-uuid --set=root 1B59-3213
		fi
		echo	'Ładowanie systemu Linux linux...'
		linux	/vmlinuz-linux root=UUID=6a2d23b1-658f-498a-aa47-20ba2d895427 rw zswap.enabled=0 rootfstype=ext4 loglevel=3 quiet
		echo	'Ładowanie początkowego ramdysku...'
		initrd	/intel-ucode.img /initramfs-linux-fallback.img
	}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/15_ostree ###
### END /etc/grub.d/15_ostree ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/25_bli ###
if [ "$grub_platform" = "efi" ]; then
  insmod bli
fi
### END /etc/grub.d/25_bli ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (na /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-efi-D292-6009' {
	insmod part_gpt
	insmod fat
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  D292-6009
	else
	  search --no-floppy --fs-uuid --set=root D292-6009
	fi
	chainloader /efi/Microsoft/Boot/bootmgfw.efi
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
if [ "$grub_platform" = "efi" ]; then
	fwsetup --is-supported
	if [ "$?" = 0 ]; then
		menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
			fwsetup
		}
	fi
fi
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###

and here is my /etc/default/grub

# GRUB boot loader configuration

GRUB_DEFAULT=2
GRUB_TIMEOUT=7
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet"
GRUB_CMDLINE_LINUX="zswap.enabled=0 rootfstype=ext4"

#Video backend
GRUB_VIDEO_BACKEND=efi_uga

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y

# Set to 'countdown' or 'hidden' to change timeout behavior,
# press ESC key to display menu.
GRUB_TIMEOUT_STYLE=menu

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `videoinfo'
GRUB_GFXMODE=auto

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.
GRUB_COLOR_NORMAL="light-blue/black"
GRUB_COLOR_HIGHLIGHT="light-cyan/blue"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME="/path/to/gfxtheme"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

# Uncomment to make GRUB remember the last selection. This requires
# setting 'GRUB_DEFAULT=saved' above.
#GRUB_SAVEDEFAULT=true

# Uncomment to disable submenus in boot menu
#GRUB_DISABLE_SUBMENU=y

# Probing for other operating systems is disabled for security reasons. Read
# documentation on GRUB_DISABLE_OS_PROBER, if still want to enable this
# functionality install os-prober and uncomment to detect and include other
# operating systems.
GRUB_DISABLE_OS_PROBER=false

Offline

#6 2025-01-15 16:47:41

seth
Member
Registered: 2012-09-03
Posts: 60,466

Re: GRUB issue with locale - question marks instead of polish letters

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt8'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt8 --hint-efi=hd0,gpt8 --hint-baremetal=ahci0,gpt8  6a2d23b1-658f-498a-aa47-20ba2d895427
else
  search --no-floppy --fs-uuid --set=root 6a2d23b1-658f-498a-aa47-20ba2d895427
fi
    font="/usr/share/grub/unicode.pf2"
fi

This isn't gonna work - "/usr/share" is meaningless in grub - that's in the grub.cfg example as well, though…
It apparently tries to default to

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else

Try to make that unconditional - your default/grub doesn't have any GRUB_FONT entry but we'll ignore that for the moment. Edit /boot/grub/grub.cfg directly and use

- if loadfont $font ; then
+ if loadfont unicode ; then

Offline

#7 2025-01-15 17:42:10

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,642
Website

Re: GRUB issue with locale - question marks instead of polish letters

seth wrote:

This isn't gonna work - "/usr/share" is meaningless in grub

The root partition is defined just above so that path should be recognised by GRUB.

The default font is unicode.pf2 and if it wasn't loading the OP probably wouldn't have menu borders. @OP: is that the case? Are the borders replaced with question marks as well?

/boot/ is mounted on the ESP so backup everything there, re-format the partition, and restore the contents. And consider moving /boot/ back to the root partition to avoid it happening again in future. The vfat filesystem breaks incredibly easily.


Para todos todo, para nosotros nada

Offline

#8 2025-01-15 18:37:42

e.
Member
Registered: 2025-01-15
Posts: 14

Re: GRUB issue with locale - question marks instead of polish letters

seth wrote:

Try to make that unconditional - your default/grub doesn't have any GRUB_FONT entry but we'll ignore that for the moment. Edit /boot/grub/grub.cfg directly and use

- if loadfont $font ; then
+ if loadfont unicode ; then

I've manually edited the line in grub.cfg just as you said but unfortunately I couldn't see a difference.

Head_on_a_Stick wrote:

@OP: is that the case? Are the borders replaced with question marks as well?

No, the borders are just fine. The only issue is with single polish characters in the info below the GRUB menu.

Head_on_a_Stick wrote:

/boot/ is mounted on the ESP so backup everything there, re-format the partition, and restore the contents. And consider moving /boot/ back to the root partition to avoid it happening again in future. The vfat filesystem breaks incredibly easily.

I'm afraid it may not help, as I've just installed Arch yesterday and I have that issue just from the beginning, starting from the first boot. I'm also kinda hesitant to do this as I am afraid that I will royally mess things up and have to go through another reinstall afterwards. tongue

Offline

#9 2025-01-15 18:49:29

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,642
Website

Re: GRUB issue with locale - question marks instead of polish letters

What does fsck say about the ESP? Is it clean?


Para todos todo, para nosotros nada

Offline

#10 2025-01-15 19:04:29

e.
Member
Registered: 2025-01-15
Posts: 14

Re: GRUB issue with locale - question marks instead of polish letters

Head_on_a_Stick wrote:

What does fsck say about the ESP? Is it clean?

Yes, it doesn't report any errors.

Offline

#11 2025-01-15 19:27:30

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,642
Website

Re: GRUB issue with locale - question marks instead of polish letters

Does /usr/share/grub/euro.pf2 work any better?


Para todos todo, para nosotros nada

Offline

#12 2025-01-15 20:46:46

e.
Member
Registered: 2025-01-15
Posts: 14

Re: GRUB issue with locale - question marks instead of polish letters

Head_on_a_Stick wrote:

Does /usr/share/grub/euro.pf2 work any better?

Nope, same story. hmm
To be honest, I've tried all of them and I don't see any difference during booting. It seems like adding GRUB_FONT option to the /etc/default/grub doesn't change a thing in the font appearance in the menu.
In case it helps you figure out what's wrong, I echoed a few variables from automatically generated grub.cfg and the font is set to unicode, and the lang is set to pl_PL. The grub.cfg file itself is saved using UTF-8 encoding.
What am I missing?

Offline

#13 2025-01-15 21:04:39

seth
Member
Registered: 2012-09-03
Posts: 60,466

Re: GRUB issue with locale - question marks instead of polish letters

Can you use other non-ascii glyphs like öäü ?

Offline

#14 Yesterday 05:52:23

e.
Member
Registered: 2025-01-15
Posts: 14

Re: GRUB issue with locale - question marks instead of polish letters

seth wrote:

Can you use other non-ascii glyphs like öäü ?

Yes. I can see those three properly. The other one that I can see is ó. The problem is with the letters ąćęłńśźż.

Offline

#15 Yesterday 07:36:33

Fixxer
Member
From: Poland
Registered: 2011-08-29
Posts: 226

Re: GRUB issue with locale - question marks instead of polish letters

It's a font shape problem, use these settings:

cat /etc/vconsole.conf
FONT=eurlatgr
KEYMAP=pl

And yes, it works since don't remember when...

If this doesn't work check your settings:

localectl status

https://wiki.archlinux.org/title/Xorg/K … figuration
https://wiki.archlinux.org/title/Linux_ … figuration

If you want test settings, go to TTY and type as follows as root:

loadkeys pl
setfont eurlatgr
touch Zażółć_gęślą_jaźń
ls -la

You should™ see all Polish special characters...

Last edited by Fixxer (Yesterday 08:14:50)

Offline

#16 Yesterday 09:17:30

seth
Member
Registered: 2012-09-03
Posts: 60,466

Re: GRUB issue with locale - question marks instead of polish letters

Are you sure this is for grub and not just the console?
While I'm willing to buy that grub randomly looks for files in some defined roots to render its menu, I'm pretty sure it won't adhere to the vconsole.conf

The "unifont" seems less "uni", though.
Try http://0x0.st/8owv.bin (save as unifont.pf2, it's the unifont.bdf converted w/ grub-mkfont)

Edit: shift+english…

Last edited by seth (Yesterday 10:02:44)

Offline

#17 Yesterday 09:44:48

Fixxer
Member
From: Poland
Registered: 2011-08-29
Posts: 226

Re: GRUB issue with locale - question marks instead of polish letters

seth wrote:

Are you sure this is for grub and not just the console?
While I'M willing to buy that grub randomly looks for files in some defined roots to render it's menu I'm pretty sure it won't adhere to the vconsole.conf

Yes, I know it. I've never changed anything with grub display settings, fonts, etc. Maybe the issue is related with graphical drivers / buffer, mkinitcpio modules, etc, etc.

I've wrote about that - to test if the rest of system with properly set LANG=pl_PL.UTF-8 works as we expect.

e. wrote:

The problem is with the letters ąćęłńśźż.

Last edited by Fixxer (Yesterday 09:45:24)

Offline

#18 Yesterday 10:02:34

e.
Member
Registered: 2025-01-15
Posts: 14

Re: GRUB issue with locale - question marks instead of polish letters

I wish it solved the issue, but it didn't so far.
The funny thing is that everything works fine after I log in, I can write, save and display polish letters properly in the console, dolphin, kate, whatever. It's the GRUB that is not displaying letters properly.
I've tried adding MODULES=(i915) at the beginning of mkinitcpio.conf but it didn't solve the problem either.

Offline

#19 Yesterday 10:08:53

Fixxer
Member
From: Poland
Registered: 2011-08-29
Posts: 226

Re: GRUB issue with locale - question marks instead of polish letters

Ok, what is your grub menu resolution, show file /etc/default.grub. What is the safe default / optimum resolution of your screen / monitor? Is this laptop or PC unit?

sed -E '/^\s*(#.*)*$/d' /etc/default/grub

Offline

#20 Yesterday 10:19:51

seth
Member
Registered: 2012-09-03
Posts: 60,466

Re: GRUB issue with locale - question marks instead of polish letters

What didn't?
(Unfortunately idk how to inspect pf2 fonts to see what's actually inside, but I just noticed that the distributed unicode.pf2 is exactly the same size (2.3MB) as the file I've generated - so despite different hashes, it's perhaps the same.

https://savannah.gnu.org/bugs/?group=grub doen't inspire a lot of confidence - and it's not searchable…
Fedora seems to ship pre-conversion of terminus, https://packages.fedoraproject.org/pkgs … nts-grub2/ - maybe you're mor lucky w/ those.

Offline

#21 Yesterday 10:35:28

e.
Member
Registered: 2025-01-15
Posts: 14

Re: GRUB issue with locale - question marks instead of polish letters

Fixxer wrote:

Ok, what is your grub menu resolution, show file /etc/default.grub. What is the safe default / optimum resolution of your screen / monitor? Is this laptop or PC unit?

sed -E '/^\s*(#.*)*$/d' /etc/default/grub

That's the result

GRUB_DEFAULT=2
GRUB_TIMEOUT=7
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet"
GRUB_CMDLINE_LINUX="zswap.enabled=0 rootfstype=ext4"
GRUB_VIDEO_BACKEND=efi_uga
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
GRUB_TIMEOUT_STYLE=menu
GRUB_TERMINAL_INPUT=console
GRUB_GFXMODE=auto
GRUB_GFXPAYLOAD_LINUX=keep
GRUB_DISABLE_RECOVERY=true
GRUB_COLOR_NORMAL="light-blue/black"
GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
GRUB_FONT="/usr/share/grub/unicode.pf2"
GRUB_DISABLE_OS_PROBER=false

I'm on laptop with the resolution of 1920x1080 px

Offline

#22 Yesterday 11:19:48

e.
Member
Registered: 2025-01-15
Posts: 14

Re: GRUB issue with locale - question marks instead of polish letters

seth wrote:

What didn't?
(Unfortunately idk how to inspect pf2 fonts to see what's actually inside, but I just noticed that the distributed unicode.pf2 is exactly the same size (2.3MB) as the file I've generated - so despite different hashes, it's perhaps the same.

https://savannah.gnu.org/bugs/?group=grub doen't inspire a lot of confidence - and it's not searchable…
Fedora seems to ship pre-conversion of terminus, https://packages.fedoraproject.org/pkgs … nts-grub2/ - maybe you're mor lucky w/ those.

I've downloaded the terminus fonts from fedora, added GRUB_FONT option to /etc/default/grub and played a bit with it. I've pointed to different fonts as well: unicode, unifont, ascii, euro, etc., and whatever I do, the font doesn't change in the GRUB, everything looks exactly the same. Is there something possibly preventing the GRUB form applying the changes? Or maybe something resets it to default at some point? After each change I run

grub-mkconfig -o /boot/grub/grub.cfg

and it seems to generate config file without errors but still there is no difference at boot time.

Offline

#23 Yesterday 11:43:17

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,641

Re: GRUB issue with locale - question marks instead of polish letters

are you generating that config into the correct place? If nothing changes at all, chances are the config file you're generating is not the config file grub is looking at. Do you have a seperate ESP that was once mounted to /boot but isn't now or vice versa? What's your output for

mount
efibootmgr -uv

Offline

#24 Yesterday 12:58:14

e.
Member
Registered: 2025-01-15
Posts: 14

Re: GRUB issue with locale - question marks instead of polish letters

V1del wrote:

are you generating that config into the correct place? If nothing changes at all, chances are the config file you're generating is not the config file grub is looking at. Do you have a seperate ESP that was once mounted to /boot but isn't now or vice versa? What's your output for

mount
efibootmgr -uv

Yes, I'm sure that I generate the correct file. Maybe I didn't clarify that properly but when I change something in /etc/default/grub it then changes the contents of /boot/grub/grub.cfg and then the /boot/grub/grub.cfg is used during booting (as I echoed something manually from /boot/grub/grub.cfg and the echoed text showed up during booting). The problem is that whatever I set GRUB_FONT to, it doesn't change the GRUB menu appearance.

I wonder if I messed something up by adding

#Video backend
GRUB_VIDEO_BACKEND=efi_uga

I had to add this line as I had previously experienced an entirely black screen with no GRUB menu at all prior to adding this line. The GRUB menu was apparently there, because I could choose different menu entries and boot whatever system I wanted, I just didn't see what I was choosing (and obviously couldn't see if the polish letters were displayed properly as they were not displayed at all big_smile)

Here is the result for
mount

proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=8096628k,nr_inodes=2024157,mode=755,inode64)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755,inode64)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
/dev/sda8 on / type ext4 (rw,relatime)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=41,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=4368)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,nosuid,nodev,relatime,pagesize=2M)
tmpfs on /run/credentials/systemd-journald.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,nr_inodes=1048576,inode64)
/dev/sda7 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1626380k,nr_inodes=406595,mode=700,uid=1000,gid=1000,inode64)
portal on /run/user/1000/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)

and here is the result for
efibootmgr -uv

BootCurrent: 0013
Timeout: 0 seconds
BootOrder: 000D,0007,0008,0013,0015,0009,000A,000B,000C,000E
Boot0000  Setup FvFile(721c8b66-426c-4e86-8e99-3457c46ab0b9)
      dp: 04 06 14 00 66 8b 1c 72 6c 42 86 4e 8e 99 34 57 c4 6a b0 b9 / 7f ff 04 00
Boot0001  Boot Menu     FvFile(126a762d-5758-4fca-8531-201a7f57f850)
      dp: 04 06 14 00 2d 76 6a 12 58 57 ca 4f 85 31 20 1a 7f 57 f8 50 / 7f ff 04 00
Boot0002  Diagnostic Splash Screen      FvFile(a7d8d9a6-6ab0-4aeb-ad9d-163e59a7a380)
      dp: 04 06 14 00 a6 d9 d8 a7 b0 6a eb 4a ad 9d 16 3e 59 a7 a3 80 / 7f ff 04 00
Boot0003  Lenovo Diagnostics    FvFile(3f7e615b-0d45-4f80-88dc-26b234958560)
      dp: 04 06 14 00 5b 61 7e 3f 45 0d 80 4f 88 dc 26 b2 34 95 85 60 / 7f ff 04 00
Boot0004  Startup Interrupt Menu        FvFile(f46ee6f4-4785-43a3-923d-7f786c3c8479)
      dp: 04 06 14 00 f4 e6 6e f4 85 47 a3 43 92 3d 7f 78 6c 3c 84 79 / 7f ff 04 00
Boot0005  Rescue and Recovery   FvFile(665d3f60-ad3e-4cad-8e26-db46eee9f1b5)
      dp: 04 06 14 00 60 3f 5d 66 3e ad ad 4c 8e 26 db 46 ee e9 f1 b5 / 7f ff 04 00
Boot0006  MEBx Hot Key  FvFile(ac6fd56a-3d41-4efd-a1b9-870293811a28)
      dp: 04 06 14 00 6a d5 6f ac 41 3d fd 4e a1 b9 87 02 93 81 1a 28 / 7f ff 04 00
Boot0007* USB CD        VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,86701296aa5a7848b66cd49dd3ba6a55)
      dp: 03 0a 24 00 d2 38 78 bc 82 0f 60 4d 83 16 c0 68 ee 79 d2 5b 86 70 12 96 aa 5a 78 48 b6 6c d4 9d d3 ba 6a 55 / 7f ff 04 00
Boot0008* USB FDD       VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,6ff015a28830b543a8b8641009461e49)
      dp: 03 0a 24 00 d2 38 78 bc 82 0f 60 4d 83 16 c0 68 ee 79 d2 5b 6f f0 15 a2 88 30 b5 43 a8 b8 64 10 09 46 1e 49 / 7f ff 04 00
Boot0009* ATAPI CD0     VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,aea2090adfde214e8b3a5e471856a35402)
      dp: 03 0a 25 00 d2 38 78 bc 82 0f 60 4d 83 16 c0 68 ee 79 d2 5b ae a2 09 0a df de 21 4e 8b 3a 5e 47 18 56 a3 54 02 / 7f ff 04 00
Boot000A* ATA HDD0      VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f600)
      dp: 03 0a 25 00 d2 38 78 bc 82 0f 60 4d 83 16 c0 68 ee 79 d2 5b 91 af 62 59 56 44 9f 41 a7 b9 1f 4f 89 2a b0 f6 00 / 7f ff 04 00
Boot000B* ATA HDD1      VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f601)
      dp: 03 0a 25 00 d2 38 78 bc 82 0f 60 4d 83 16 c0 68 ee 79 d2 5b 91 af 62 59 56 44 9f 41 a7 b9 1f 4f 89 2a b0 f6 01 / 7f ff 04 00
Boot000C* ATA HDD2      VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f602)
      dp: 03 0a 25 00 d2 38 78 bc 82 0f 60 4d 83 16 c0 68 ee 79 d2 5b 91 af 62 59 56 44 9f 41 a7 b9 1f 4f 89 2a b0 f6 02 / 7f ff 04 00
Boot000D* USB HDD       VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,33e821aaaf33bc4789bd419f88c50803)
      dp: 03 0a 24 00 d2 38 78 bc 82 0f 60 4d 83 16 c0 68 ee 79 d2 5b 33 e8 21 aa af 33 bc 47 89 bd 41 9f 88 c5 08 03 / 7f ff 04 00
Boot000E* PCI LAN       VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,78a84aaf2b2afc4ea79cf5cc8f3d3803)
      dp: 03 0a 24 00 d2 38 78 bc 82 0f 60 4d 83 16 c0 68 ee 79 d2 5b 78 a8 4a af 2b 2a fc 4e a7 9c f5 cc 8f 3d 38 03 / 7f ff 04 00
Boot000F* IDER BOOT CDROM       PciRoot(0x0)/Pci(0x16,0x2)/Ata(0,1,0)
      dp: 02 01 0c 00 d0 41 03 0a 00 00 00 00 / 01 01 06 00 02 16 / 03 01 08 00 00 01 00 00 / 7f ff 04 00
Boot0010* IDER BOOT Floppy      PciRoot(0x0)/Pci(0x16,0x2)/Ata(0,0,0)
      dp: 02 01 0c 00 d0 41 03 0a 00 00 00 00 / 01 01 06 00 02 16 / 03 01 08 00 00 00 00 00 / 7f ff 04 00
Boot0011* ATA HDD       VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f6)
      dp: 03 0a 24 00 d2 38 78 bc 82 0f 60 4d 83 16 c0 68 ee 79 d2 5b 91 af 62 59 56 44 9f 41 a7 b9 1f 4f 89 2a b0 f6 / 7f ff 04 00
Boot0012* ATAPI CD      VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,aea2090adfde214e8b3a5e471856a354)
      dp: 03 0a 24 00 d2 38 78 bc 82 0f 60 4d 83 16 c0 68 ee 79 d2 5b ae a2 09 0a df de 21 4e 8b 3a 5e 47 18 56 a3 54 / 7f ff 04 00
Boot0013* GRUB  HD(7,GPT,c1d7a73d-2dcd-407f-8fe1-de40fc1eba05,0x6670b000,0x200000)/\EFI\GRUB\grubx64.efi
      dp: 04 01 2a 00 07 00 00 00 00 b0 70 66 00 00 00 00 00 00 20 00 00 00 00 00 3d a7 d7 c1 cd 2d 7f 40 8f e1 de 40 fc 1e ba 05 02 02 / 04 04 30 00 5c 00 45 00 46 00 49 00 5c 00 47 00 52 00 55 00 42 00 5c 00 67 00 72 00 75 00 62 00 78 00 36 00 34 00 2e 00 65 00 66 00 69 00 00 00 / 7f ff 04 00
Boot0015* Windows Boot Manager  HD(2,GPT,1e286550-eb3a-4892-bd55-f18eb83de9fd,0x1f4800,0x82000)/\EFI\Microsoft\Boot\bootmgfw.efi䥗䑎坏S
      dp: 04 01 2a 00 02 00 00 00 00 48 1f 00 00 00 00 00 00 20 08 00 00 00 00 00 50 65 28 1e 3a eb 92 48 bd 55 f1 8e b8 3d e9 fd 02 02 / 04 04 46 00 5c 00 45 00 46 00 49 00 5c 00 4d 00 69 00 63 00 72 00 6f 00 73 00 6f 00 66 00 74 00 5c 00 42 00 6f 00 6f 00 74 00 5c 00 62 00 6f 00 6f 00 74 00 6d 00 67 00 66 00 77 00 2e 00 65 00 66 00 69 00 00 00 / 7f ff 04 00
    data: 57 49 4e 44 4f 57 53 00 01 00 00 00 88 00 00 00 78 00 00 00 42 00 43 00 44 00 4f 00 42 00 4a 00 45 00 43 00 54 00 3d 00 7b 00 39 00 64 00 65 00 61 00 38 00 36 00 32 00 63 00 2d 00 35 00 63 00 64 00 64 00 2d 00 34 00 65 00 37 00 30 00 2d 00 61 00 63 00 63 00 31 00 2d 00 66 00 33 00 32 00 62 00 33 00 34 00 34 00 64 00 34 00 37 00 39 00 35 00 7d 00 00 00 39 00 01 00 00 00 10 00 00 00 04 00 00 00 7f ff 04 00

Offline

#25 Yesterday 16:17:58

seth
Member
Registered: 2012-09-03
Posts: 60,466

Re: GRUB issue with locale - question marks instead of polish letters

I'll maintain some doubt that

GRUB_FONT="/usr/share/grub/unicode.pf2"

can work - make sure to put the file(s) into /boot/grub/fonts and check "lsfonts", https://www.gnu.org/software/grub/manua … html#Fonts

Offline

Board footer

Powered by FluxBB