Bug 487133 - setsysfont does not respect LC_CTYPE
Summary: setsysfont does not respect LC_CTYPE
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: initscripts
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-02-24 13:55 UTC by Stepan Kasal
Modified: 2018-04-11 10:37 UTC (History)
4 users (show)

Fixed In Version: 8.86.3-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-03-24 21:04:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
my patch (465 bytes, patch)
2009-02-24 13:55 UTC, Stepan Kasal
no flags Details | Diff

Description Stepan Kasal 2009-02-24 13:55:26 UTC
Created attachment 333046 [details]
my patch

Description of problem:
my /etc/sysconfig/i18n sets LC_CTYPE, but not LANG
then the console is not switched to Unicode mode.

The problem is that /sbin/setsysfont script does not check LC_CTYPE.
Proposed patch attached.

Comment 1 Matěj Cepl 2009-02-24 13:57:36 UTC
There is nothing to triage here.

Switching to ASSIGNED so that developers have responsibility to do whatever they want to do with it.

Comment 2 Bill Nottingham 2009-03-20 21:07:28 UTC
You have CTYPE (for the charset) and LANG different? Why not just set the charset as part of the LANG?

Comment 3 Stepan Kasal 2009-03-24 16:29:50 UTC
(In reply to comment #2)
> You have CTYPE (for the charset) and LANG different? Why not just set the
> charset as part of the LANG?  

Well, because I do want to set LC_CTYPE, but not the other LC_* variables.

I need LC_NUMERIC=POSIX, so that no thousands delimiters is used, I need LC_MESSAGES=POSIX, so that I get the error messages intranslated, etc.
Indeed, of all the LC_*, I want to set LC_CTYPE only.

All these LC_* are independent, LANG is a default for unset ones, and LC_ALL, if set overrides all of them.

When you think about it, the console font should indeen depend on the LC_CTYPE ("Character cassification") than on LANG ("The default value for internationalization variables that are unset or null").

Comment 4 Bill Nottingham 2009-03-24 21:04:55 UTC
http://git.fedorahosted.org/git/?p=initscripts.git;a=commitdiff;h=bb45289856fe0027bb62f024b01802f1eccf5142

Also cherry-picked to the F10-branch.

Comment 5 Fedora Update System 2009-04-02 18:04:15 UTC
initscripts-8.86.1-1 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/initscripts-8.86.1-1

Comment 6 Fedora Update System 2009-04-03 04:15:56 UTC
initscripts-8.86.2-1 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/initscripts-8.86.2-1

Comment 7 Fedora Update System 2009-04-22 20:22:21 UTC
initscripts-8.86.3-1 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.


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