xinglp wrote:
> In SVN-20110904 and before
>
> /etc/rc.d/init.d/console is like:
>
> # Native English speakers probably don't have /etc/sysconfig/console at all
> if [ -r /etc/sysconfig/console ]; then
> . /etc/sysconfig/console
> else
> exit 0
> fi
>
> And now, it is :
>
> # See if we need to do anything
> if [ -z "${KEYMAP}" ] && [ -z "${KEYMAP_CORRECTIONS}" ] &&
> [ -z "${FONT}" ] && [ -z "${LEGACY_CHARSET}" ] &&
> is_true "${UNICODE}"; then
> exit 0
> fi
>
> So with a untouched /etc/sysconfig/rc.site, we should set a default
> value "UNICODE=1" to make everything works like before.
>
> I met mess when I run ncurses programs with framebuff enabled, which
> works well before. So I debuged this problem. And I'm using
> en_US.utf8 as my locale.
What is there now is supposed to work like it did before. UNICODE can
be set in /etc/sysconfig/console or /etc/sysconfig/rc.site, but it is
not set by default.
There is an error in the if statement above. The logic for the UNICODE
setting needs to be reversed. That is,
is_true "${UNICODE}"
needs to be
! is_true "${UNICODE}"
but the user needs set UNICODE in either /etc/sysconfig/rc.site or
/etc/sysconfig/console.
I'll make the logic change.
-- Bruce
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page