Bug 204165 - continuation of bug 159706: bad management of SYSFONTACM in /sbin/setsysfont
Summary: continuation of bug 159706: bad management of SYSFONTACM in /sbin/setsysfont
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: initscripts
Version: 5
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-08-26 09:28 UTC by Yves L'ECUYER
Modified: 2014-03-17 03:01 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-11-10 20:06:48 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Yves L'ECUYER 2006-08-26 09:28:35 UTC
As I reported in bug 159706 for fedora core 4, to manage correctly the option
i18n in setsysfont:

BUGGY lines in
/sbin/setsysfont:
------------------------
 
    if [ ! -f /lib/kbd/consoletrans/$SYSFONTACM_to_uni.trans ]; then
        SYSFONTACM=`echo $SYSFONTACM | sed "s|iso0|8859-|g;s|iso|8859-|g"`
    fi
 
  fi


must become:
  
    if [ ! -f /lib/kbd/consoletrans/${SYSFONTACM}_to_uni.trans ]; then
        SYSFONTACM=`echo $SYSFONTACM | sed "s/iso0/8859-/g;s/iso/8859-/g"`
    fi

Unfortunately, in fedora 5 only the first line is corrected, but in the second
line, the pattern matching for sed expression is STILL with pipe "|" instead of
"/", so processing of SYSFONTACM still doesn't work !

Comment 1 Bill Nottingham 2006-10-18 21:00:19 UTC
I can't reproduce this here - setting SYSFONTACM to (for example) iso15 works,
in that I get 8859-15 out.

Note that this is, in essence, supporting a config written by pre-kbd packages,
which is a few years ago at this point.

Comment 2 Miloslav Trmač 2006-11-10 20:06:48 UTC
The sed 's' command can use any characer as a separator, not only a slash.


Note You need to log in before you can comment on or make changes to this bug.