Bug 466611
| Summary: | lang script do not setup unicode console correct (call of unicode_start/unicode_stop miss) | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Sergei LITVINENKO <sergei.litvinenko> |
| Component: | initscripts | Assignee: | Bill Nottingham <notting> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | rawhide | CC: | notting, rvokal |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2008-10-14 01:14:07 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
*** This bug has been marked as a duplicate of bug 458362 *** |
Description of problem: [sergeil@homedesk ~]$ cat /etc/sysconfig/i18n LANG="ru_RU.UTF-8" SYSFONT="latarcyrheb-sun16" Missing call of unicode_start in /etc/profile.d/lang.* cause wrong charset in text console. Russian text console is not applicable in any case. Version-Release number of selected component (if applicable): initscripts-8.83-1.i386 How reproducible: 100% Steps to Reproduce: 1. Set UTF8 russian locale 2. Boot in runlevel 3 3. Actual results: All russian subbols are not readable Expected results: Correct russian symbols and borders in mc Additional info: Fix /etc/profile.d/lang.sh by restoring messing fragments (source is lang.sh from fedora-8) solve problem. ... if [ -n "$LANG" ]; then case $LANG in *.utf8*|*.UTF-8*) if [ "$TERM" = "linux" ]; then if [ "$consoletype" = "vt" ]; then + if [ -x /bin/unicode_start ] && /sbin/consoletype fg ; then + for langfile in /etc/sysconfig/i18n $HOME/.i18n ; do + [ -f $langfile ] && . $langfile + done + /bin/unicode_start $SYSFONT $SYSFONTACM + fi case $LANG in ja*) LANG=en_US.UTF-8 ;; ko*) LANG=en_US.UTF-8 ;; si*) LANG=en_US.UTF-8 ;; zh*) LANG=en_US.UTF-8 ;; en_IN*) ;; *_IN*) LANG=en_US.UTF-8 ;; esac fi fi ... if [ "$TERM" = "linux" ]; then if [ "$consoletype" = "vt" ]; then case $LANG in ja*) LANG=en_US ;; ko*) LANG=en_US ;; si*) LANG=en_US ;; zh*) LANG=en_US ;; en_IN*) ;; *_IN*) LANG=en_US ;; esac + [ -x /bin/unicode_stop ] && /sbin/consoletype fg && /bin/unicode_stop fi fi