Skip to contentSkip to conversation

Does plain pc console support UNICODE?

DISCUSSION Andrey Borzenkov 2 participants 2 messages Oct 4, 2012 – Jan 20, 2013

lore
Share & tools
lore
#0 lore raw

I have default language Russian. When testing patch I switched from gfxterm to plain console and got '????' instead of grub messages. Is it supposed to work at all? If not, does it make sense to temporary reset language when we switch to terminal that is known to not support UNICODE?

-andrey

#1 lore raw
Quoted 6 lines · Andrey Borzenkov

I have default language Russian. When testing patch I switched from gfxterm to plain console and got '????' instead of grub messages. Is it supposed to work at all? If not, does it make sense to temporary reset language when we switch to terminal that is known to not support UNICODE?

Normal BIOS console supports only CP437. The fix for this would go through:
1) Possible use of vga_text instead of BIOS services and enhance it with font-loading code to dynamically load characters we need. But this is already more than just a simple console and requires to load e.g. unifont. Currently BIOS services and vga_text are used for their simplicity and compactness. Perhaps vga_text would need to be split to vga_text and vga_text_font the latter being a separate module and vga_text calling vga_text_font only if it's loaded.
2) Another possibility is to translate the unrepresentable characters to their nearest ASCII equivalent. The problem is that this is somewhat language-dependent. E.g. a German-speaking person would replace ö with oe but a Finnish would probably just drop the diaresis.

Quoted 8 lines

-andrey

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko