]> git.ipfire.org Git - thirdparty/systemd.git/commit
vconsole-setup: enable utf-8 mode explicitly
authorTom Gundersen <teg@jklm.no>
Sun, 10 Jun 2012 18:37:14 +0000 (20:37 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 19 Jun 2012 15:29:22 +0000 (17:29 +0200)
commitd305a67b46644d6360ef557109384c831ee8e018
tree5f09d1c4ab953d50d40b2b9ef5dc8dd4c433e9fe
parent9722ef2565fdddd64deaa99d7665ca0fdafed1a5
vconsole-setup: enable utf-8 mode explicitly

Rather than assuming the console is in utf-8 mode if nothing else is
specified, be a bit more robust and enable it explicitly.

This fixes a regression compared with Arch's initscripts when not
using a framebuffer as the old VGA console would not be in utf-8
mode by default.

Furthermore, this would allow vconsole-setup to be used after boot
to change the vconsole into utf-8 mode in case it has been set to
non-utf-8 mode for whatever reason. I.e, the following would leave
the console in utf-8 mode as expected:

 # export LANG=en_US.ISO-8859-1
 # /usr/lib/systemd/systemd-vconsole-setup
 # export LANG=en_US.UTF-8
 # /usr/lib/systemd/systemd-vconsole-setup

Reported-by: Xyne <xyne@archlinx.ca>
Reported-by: Thomas Bächler <thomas@archlinux.org>
Cc: Dave Reisner <dreisner@archlinux.org>
src/vconsole/vconsole-setup.c