Comment 4 for bug 1565542

Evgeniy Yanyuk (eugenenuke) wrote :

Xenial also contain this bug. I did clean install xenial desktop amd64 in the VirtualBox. After installation I have switched to the text console (Ctrl+Alt+F1) and I've got boxes instead cyrillic fonts.

cat /etc/default/console-setup:
------------------------------------------------------------
# CONFIGURATION FILE FOR SETUPCON

# Consult the console-setup(5) manual page.

ACTIVE_CONSOLES="/dev/tty[1-6]"

CHARMAP="UTF-8"

CODESET="guess"
FONTFACE="Fixed"
FONTSIZE="8x16"

VIDEOMODE=

# The following is an example how to use a braille font
# FONT='lat9w-08.psf.gz brl-8x8.psf'
------------------------------------------------------------
And again we have CODESET="guess" and FONTSIZE="8x16"

cat /lib/udev/console-setup-tty:
I have cut other code and keep only setup_font ()
------------------------------------------------------------
setup_font () {
    # Set the font and ACM. setfont will silently do nothing for a console
    # in graphics mode.
    SETFONT_ARGS=
    if [ "$FONT" ]; then
 FONT="/etc/console-setup/${FONT##*/}"
 FONT="${FONT%.gz}"
    else
 FONT="/etc/console-setup/$CODESET-$FONTFACE$FONTSIZE.psf"
    fi
    if [ -f "$FONT" ]; then
 SETFONT_ARGS="${SETFONT_ARGS:+$SETFONT_ARGS }$FONT"
    fi
    if [ "$ACM" ]; then
 ACM="/etc/console-setup/${ACM##*/}"
 ACM="${ACM%.gz}"
    else
 ACM="/etc/console-setup/$CHARMAP.acm"
    fi
    if [ -f "$ACM" ]; then
 SETFONT_ARGS="${SETFONT_ARGS:+$SETFONT_ARGS }-m $ACM"
    fi
    if [ "$SETFONT_ARGS" ]; then
 setfont -C "$1" $SETFONT_ARGS
    fi
}
------------------------------------------------------------
In our case FONT will be "/etc/console-setup/guess-Fixed8x16.psf"

But we have
ls /etc/console-setup/
/etc/console-setup/Uni2-Fixed16.psf.gz

So FONT must be "/etc/console-setup/Uni2-Fixed16.psf" or even "/etc/console-setup/Uni2-Fixed16.psf.gz",
because the next check
    if [ -f "$FONT" ]; then
will fail with an uncompressed file.

The /bin/setupcon script has code for CODESET="guess" and FONTSIZE="8x16", but
 /lib/udev/console-setup-tty
/usr/share/initramfs-tools/scripts/init-top/console_setup
/usr/share/initramfs-tools/hooks/console_setup
/usr/share/initramfs-tools/scripts/panic/console_setup
have not

apt-cache policy keyboard-configuration
keyboard-configuration:
  Installed: 1.108ubuntu13
  Candidate: 1.108ubuntu13