Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What does unicode="YES" as defined in rc.conf ??
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3664

PostPosted: Tue Sep 23, 2014 12:20 pm    Post subject: What does unicode="YES" as defined in rc.conf ?? Reply with quote

/etc/rc.conf wrote:
##############################################################################
# MISC CONFIGURATION VARIABLES
# There variables are shared between many init scripts

# Set unicode to YES to turn on unicode support for keyboards and screens.
unicode="YES"

Which programs or processes make usage of this setting that we have in rc.conf?
Is it for framebuffer, for X? Or just leftover from the past?

And what is the relation (if any) to what we've defined in /etc/conf.d/keymaps?
/etc/conf.d/keymaps wrote:
# Use keymap to specify the default console keymap. There is a complete tree
# of keymaps in /usr/share/keymaps to choose from.
keymap="de-latin1"

# Should we first load the 'windowkeys' console keymap? Most x86 users will
# say "yes" here. Note that non-x86 users should leave it as "no".
# Loading this keymap will enable VT switching (like ALT+Left/Right)
# using the special windows keys on the linux console.
windowkeys="no"

# The maps to load for extended keyboards. Most users will leave this as is.
extended_keymaps=""
#extended_keymaps="backspace keypad euro2"

# Tell dumpkeys(1) to interpret character action codes to be
# from the specified character set.
# This only matters if you set unicode="yes" in /etc/rc.conf.
# For a list of valid sets, run `dumpkeys --help`
dumpkeys_charset=""

# Some fonts map AltGr-E to the currency symbol ¤ instead of the Euro €
# To fix this, set to "yes"
fix_euro="NO"

What would I be missing if commented out that setting in rc.conf?
Would I still be able to login?


Last edited by charles17 on Wed Sep 24, 2014 2:10 pm; edited 1 time in total
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Wed Sep 24, 2014 11:21 am    Post subject: Reply with quote

If you want to know where this variable is used, you can easily check by looking into /etc/init.d/, for example:

Code:
$ grep unicode /etc/init.d/*


The output might vary slightly depending on the packages you have installed, I guess. The concrete purpose of that variable will depend on the service. It is probably used nowadays to control the unicode capabilities of a few basic services, such as the tty handler, the console (VT) fonts and the keymaps.

Within the keymaps.conf file there are some variables that are used as far as I know only by the keymaps service, but I could be wrong.

I know the keymaps service uses the "unicode" variable, but can't remember what for. Nowadays I rarely touch the VT. I find that X is a convenient way to pile up terms and even if you use tmux or screen the key combo handling is superior in X. Also, if you don't use KMS the text scrolls much faster in X. I think I am getting lazy :lol:
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3664

PostPosted: Wed Sep 24, 2014 2:10 pm    Post subject: Reply with quote

Thanks for the hint. So here it's only consolefont, keymaps and termencoding.
Code:
$ grep unicode /etc/init.d/*
/etc/init.d/consolefont:        unicodemap=${unicodemap:-${UNICODEMAP}}
/etc/init.d/consolefont:        if [ -n "${unicodemap}" ]; then
/etc/init.d/consolefont:                param="$param -u $unicodemap"
/etc/init.d/keymaps:    : ${unicode:=$UNICODE}
/etc/init.d/keymaps:    if yesno $unicode; then
/etc/init.d/termencoding:: ${unicode:=${UNICODE}}
/etc/init.d/termencoding:       if yesno ${unicode}; then
/etc/init.d/termencoding:               if yesno ${unicode:-${UNICODE}}; then
/etc/init.d/termencoding:                       echo "" > "$RC_LIBEXECDIR"/console/unicode
/etc/init.d/termencoding:                       rm -f "$RC_LIBEXECDIR"/console/unicode
I'll have a look into those later.
Thanks again.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum