Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo User (http://www.linux-archive.org/gentoo-user/)
-   -   The system's font display problem (http://www.linux-archive.org/gentoo-user/683876-systems-font-display-problem.html)

Nikos Chantziaras 07-15-2012 03:09 PM

The system's font display problem
 
On 15/07/12 16:14, 赵佳晖 wrote:
> Hi.all . Just now i just change my locale so i can use the fcitx. But
> after i reboot , the system's fonts display has problem.
> and my locale:
> LANG=en_US.UTF-8
> LC_CTYPE=zh_CN.UTF-8
> LC_NUMERIC=en_US.UTF-8
> LC_TIME=en_US.UTF-8
> LC_COLLATE=en_US.UTF-8
> LC_MONETARY=en_US.UTF-8
> LC_MESSAGES=en_US.UTF-8
> LC_PAPER=en_US.UTF-8
> LC_NAME=en_US.UTF-8
> LC_ADDRESS=en_US.UTF-8
> LC_TELEPHONE=en_US.UTF-8
> LC_MEASUREMENT=en_US.UTF-8
> LC_IDENTIFICATION=en_US.UTF-8
> LC_ALL=

Do not set anything other than LANG and LC_COLLATE. Then only set vars
that differ from LANG. Your /etc/env.d/02locale should look like this:

LANG="en_US.UTF-8"
LC_COLLATE="C"
LC_CTYPE=zh_CN.UTF-8

Do *not* do this:

LC_ALL=

Then run env-update and restart.

Mark Knecht 07-15-2012 06:48 PM

The system's font display problem
 
On Sun, Jul 15, 2012 at 8:09 AM, Nikos Chantziaras <realnc@gmail.com> wrote:
> On 15/07/12 16:14, 赵佳晖 wrote:
>> Hi.all . Just now i just change my locale so i can use the fcitx. But
>> after i reboot , the system's fonts display has problem.
>> and my locale:
>> LANG=en_US.UTF-8
>> LC_CTYPE=zh_CN.UTF-8
>> LC_NUMERIC=en_US.UTF-8
>> LC_TIME=en_US.UTF-8
>> LC_COLLATE=en_US.UTF-8
>> LC_MONETARY=en_US.UTF-8
>> LC_MESSAGES=en_US.UTF-8
>> LC_PAPER=en_US.UTF-8
>> LC_NAME=en_US.UTF-8
>> LC_ADDRESS=en_US.UTF-8
>> LC_TELEPHONE=en_US.UTF-8
>> LC_MEASUREMENT=en_US.UTF-8
>> LC_IDENTIFICATION=en_US.UTF-8
>> LC_ALL=
>
> Do not set anything other than LANG and LC_COLLATE. Then only set vars
> that differ from LANG. Your /etc/env.d/02locale should look like this:
>
> LANG="en_US.UTF-8"
> LC_COLLATE="C"
> LC_CTYPE=zh_CN.UTF-8
>
> Do *not* do this:
>
> LC_ALL=
>
> Then run env-update and restart.
>
>

Just double checking here. Is the file /etc/locale.gen now totally
depreciated or is it still required? The install guide still has it in
chapter 8 where the file /etc/locale.gen ends up looking pretty much
identical to the 02locale file.

Or maybe they serve different purposes somehow?

I have one very small but consistent problem with fonts on most every
system I work with so I'm been wondering for awhile about whether this
is somehow part of it. (More likely is a missing font type in this
specific case.)

Thanks,
Mark


Sun Jul 15 21:30:01 2012
Return-Path: <bounce-debian-kernel=tom=linux-archive.org@lists.debian.org>
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
eagle542.startdedicated.com
X-Spam-Level:
X-Spam-Status: No, score=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,
T_RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-Original-To: tom@linux-archive.org
Delivered-To: tom-linux-archive.org@eagle542.startdedicated.com
Received: from bendel.debian.org (bendel.debian.org [82.195.75.100])
by eagle542.startdedicated.com (Postfix) with ESMTP id 32C1420E01E2
for <tom@linux-archive.org>; Sun, 15 Jul 2012 20:57:16 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
by bendel.debian.org (Postfix) with QMQP
id 03A06507; Sun, 15 Jul 2012 18:57:14 +0000 (UTC)
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Original-To: lists-debian-kernel@bendel.debian.org
Delivered-To: lists-debian-kernel@bendel.debian.org
Received: from localhost (localhost [127.0.0.1])
by bendel.debian.org (Postfix) with ESMTP id DE1A123D
for <lists-debian-kernel@bendel.debian.org>; Sun, 15 Jul 2012 18:57:13 +0000 (UTC)
X-Virus-Scanned: at lists.debian.org with policy bank en-ht
Received: from bendel.debian.org ([127.0.0.1])
by localhost (lists.debian.org [127.0.0.1]) (amavisd-new, port 2525)
with ESMTP id iH6KrJv5fABK
for <lists-debian-kernel@bendel.debian.org>;
Sun, 15 Jul 2012 18:57:08 +0000 (UTC)
Received: from buxtehude.debian.org (buxtehude.debian.org [140.211.166.26])
(using TLSv1 with cipher AES256-SHA (256/256 bits))
(Client did not present a certificate)
by bendel.debian.org (Postfix) with ESMTPS id 4AF0F5F;
Sun, 15 Jul 2012 18:57:08 +0000 (UTC)
Received: from debbugs by buxtehude.debian.org with local (Exim 4.72)
(envelope-from <debbugs@buxtehude.debian.org>)
id 1SqU08-0005N9-J3; Sun, 15 Jul 2012 18:57:04 +0000
X-Loop: owner@bugs.debian.org
Subject: Bug#681710: kernel panic linux-image-3.2.0-3-amd64 3.2.21-3
Reply-To: a.vasilishin@kpi.ua, 681710@bugs.debian.org
Resent-From: =?UTF-8?Q?А?= =?UTF-8?Q?ндрей_?= =?UTF-8?Q?Васи?= =?UTF-8?Q?лишин?= <a.vasilishin@kpi.ua>
Resent-To: debian-bugs-dist@lists.debian.org
Resent-CC: Debian Kernel Team <debian-kernel@lists.debian.org>
X-Loop: owner@bugs.debian.org
Resent-Date: Sun, 15 Jul 2012 18:57:02 +0000
Resent-Message-ID: <handler.681710.B.134237855120138@bugs.debian.or g>
X-Debian-PR-Message: report 681710
X-Debian-PR-Package: linux-image-3.2.0-3-amd64
X-Debian-PR-Keywords:
X-Debian-PR-Source: linux
Received: via spool by submit@bugs.debian.org id=B.134237855120138
(code B); Sun, 15 Jul 2012 18:57:02 +0000
Received: (at submit) by bugs.debian.org; 15 Jul 2012 18:55:51 +0000
Received: from mail0.kpi.ua ([77.47.128.135] helo=mail1.kpi.ua)
by buxtehude.debian.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
(Exim 4.72)
(envelope-from <a.vasilishin@kpi.ua>)
id 1SqTyw-0005Dy-VN
for submit@bugs.debian.org; Sun, 15 Jul 2012 18:55:51 +0000
Authentication-Results: mail1.kpi.ua; auth=pass (auth_dovecot_plain) smtp.mail=andron@kpi.ua
Received: from [91.218.74.202] (helo=[192.168.1.103])
by mail1.kpi.ua with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
(Exim 4.72)
(envelope-from <a.vasilishin@kpi.ua>)
id 1SqQvV-0007Nc-9E
for submit@bugs.debian.org; Sun, 15 Jul 2012 18:40:05 +0300
Message-ID: <5002E44E.4090809@kpi.ua>
Date: Sun, 15 Jul 2012 18:39:58 +0300
From: =?UTF-8?Q?Андрей_?= =?UTF-8?Q?Василишин? <a.vasilishin@kpi.ua>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:13.0) Gecko/20120614 Thunderbird/13.0.1
MIME-Version: 1.0
To: submit@bugs.debian.org
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV at mail1.kpi.ua
X-Greylist: delayed 11741 seconds by postgrey-1.32 at buxtehude; Sun, 15 Jul 2012 18:55:50 UTC
Delivered-To: submit@bugs.debian.org
X-Rc-Virus: 2007-09-13_01
X-Mailing-List: <debian-kernel@lists.debian.org> archive/latest/85053
X-Loop: debian-kernel@lists.debian.org
List-Id: <debian-kernel.lists.debian.org>
List-URL: <http://lists.debian.org/debian-kernel/>
List-Post: <mailto:debian-kernel@lists.debian.org>
List-Help: <mailto:debian-kernel-request@lists.debian.org?subject=help>
List-Subscribe: <mailto:debian-kernel-request@lists.debian.org?subject=subscribe>
List-Unsubscribe: <mailto:debian-kernel-request@lists.debian.org?subject=unsubscribe>
Precedence: list
Resent-Sender: debian-kernel-request@lists.debian.org

Package: linux-image-3.2.0-3-amd64
Version: 3.2.21-3


Jul 15 15:53:27 host-37 kernel: [ 85.049563] ------------[ cut here
]------------
Jul 15 15:53:27 host-37 kernel: [ 85.049572] WARNING: at
/build/buildd-linux_3.2.21-3-amd64-l_qIBB/linux-3.2.21/kernel/time/timekeeping.c:863
do_timer+0x31e
/0x406()
Jul 15 15:53:27 host-37 kernel: [ 85.049575] Hardware name: S5520HC
Jul 15 15:53:27 host-37 kernel: [ 85.049578] Adjusting tsc more then
11% (3705724150 vs 7759556)
Jul 15 15:53:27 host-37 kernel: [ 85.049581] Modules linked in:
bonding aufs(C) xfs loop coretemp crc32c_intel snd_pcsp
ghash_clmulni_intel snd_pcm snd_time
r snd aesni_intel cryptd aes_x86_64 aes_generic acpi_cpufreq i2c_i801
i2c_core i7core_edac mperf ioatdma edac_core soundcore snd_page_alloc
button processor j
oydev evdev thermal_sys ext4 mbcache jbd2 crc16 raid1 md_mod sr_mod
cdrom usbhid hid usb_storage sd_mod crc_t10dif ata_generic ata_piix
megaraid_sas uhci_hcd
ehci_hcd mvsas libsas libata usbcore scsi_transport_sas usb_common
scsi_mod e1000e igb dca [last unloaded: scsi_wait_scan]
Jul 15 15:53:27 host-37 kernel: [ 85.049636] Pid: 0, comm: swapper/9
Tainted: G C 3.2.0-3-amd64 #1
Jul 15 15:53:27 host-37 kernel: [ 85.049638] Call Trace:
Jul 15 15:53:27 host-37 kernel: [ 85.049640] <IRQ>
[<ffffffff81046901>] ? warn_slowpath_common+0x78/0x8c
Jul 15 15:53:27 host-37 kernel: [ 85.049653] [<ffffffff810469ad>] ?
warn_slowpath_fmt+0x45/0x4a
Jul 15 15:53:27 host-37 kernel: [ 85.049659] [<ffffffff81013622>] ?
read_tsc+0x5/0x14
Jul 15 15:53:27 host-37 kernel: [ 85.049663] [<ffffffff8106697f>] ?
do_timer+0x31e/0x406
Jul 15 15:53:27 host-37 kernel: [ 85.049669] [<ffffffff8106ba04>] ?
tick_do_update_jiffies64+0x74/0x98
Jul 15 15:53:27 host-37 kernel: [ 85.049673] [<ffffffff8106bb37>] ?
tick_sched_timer+0x3f/0x90
Jul 15 15:53:27 host-37 kernel: [ 85.049678] [<ffffffff81061e72>] ?
__run_hrtimer+0xac/0x135
Jul 15 15:53:27 host-37 kernel: [ 85.049682] [<ffffffff810625a2>] ?
hrtimer_interrupt+0xdb/0x195
Jul 15 15:53:27 host-37 kernel: [ 85.049690] [<ffffffff81024203>] ?
smp_apic_timer_interrupt+0x6f/0x82
Jul 15 15:53:27 host-37 kernel: [ 85.049697] [<ffffffff8135065e>] ?
apic_timer_interrupt+0x6e/0x80
Jul 15 15:53:27 host-37 kernel: [ 85.049699] <EOI>
[<ffffffff81023ed0>] ? lapic_next_event+0xe/0x13
Jul 15 15:53:27 host-37 kernel: [ 85.049708] [<ffffffff811ec5d3>] ?
intel_idle+0xea/0x118
Jul 15 15:53:27 host-37 kernel: [ 85.049712] [<ffffffff811ec5b2>] ?
intel_idle+0xc9/0x118
Jul 15 15:53:27 host-37 kernel: [ 85.049720] [<ffffffff8126cb9f>] ?
cpuidle_idle_call+0xec/0x179
Jul 15 15:53:27 host-37 kernel: [ 85.049726] [<ffffffff8100d248>] ?
cpu_idle+0xa5/0xf2
Jul 15 15:53:27 host-37 kernel: [ 85.049731] [<ffffffff8107070e>] ?
arch_local_irq_restore+0x2/0x8
Jul 15 15:53:27 host-37 kernel: [ 85.049736] [<ffffffff8133d00a>] ?
start_secondary+0x1d5/0x1db
Jul 15 15:53:27 host-37 kernel: [ 85.049739] ---[ end trace
63b6e4cb28e95260 ]---
Jul 15 15:54:01 host-37 kernel: [ 85.565383] hrtimer: interrupt took
84050142 ns
Jul 15 15:54:34 host-37 kernel: [ 86.753859] INFO: rcu_sched detected
stalls on CPUs/tasks: { 0 1 5 9} (detected by 2, t#012 jiffies)
Jul 15 15:54:34 host-37 kernel: [ 86.754940] sending NMI to all CPUs:
Jul 15 15:54:34 host-37 kernel: [ 86.755000] NMI backtrace for cpu 0
Jul 15 15:54:34 host-37 kernel: [ 86.755003] CPU 0
Jul 15 15:54:34 host-37 kernel: [ 86.755005] Modules linked in:
bonding aufs(C) xfs loop coretemp crc32c_intel snd_pcsp
ghash_clmulni_intel snd_pcm snd_timer snd aesni_intel cryptd aes_x86_64
aes_generic acpi_cpufreq i2c_i801 i2c_core i7core_edac mperf ioatdma
edac_core soundcore snd_page_alloc button processor joydev evdev
thermal_sys ext4 mbcache jbd2 crc16 raid1 md_mod sr_mod cdrom usbhid hid
usb_storage sd_mod crc_t10dif ata_generic ata_piix megaraid_sas uhci_hcd
ehci_hcd mvsas libsas libata usbcore scsi_transport_sas usb_common
scsi_mod e1000e igb dca [last unloaded: scsi_wait_scan]
Jul 15 15:54:34 host-37 kernel: [ 86.755055]
Jul 15 15:54:34 host-37 kernel: [ 86.755058] Pid: 0, comm: swapper/0
Tainted: G WC 3.2.0-3-amd64 #1 Intel Corporation S5520HC/S5520HC
Jul 15 15:54:34 host-37 kernel: [ 86.755064] RIP:
0010:[<ffffffff811ec5a2>] [<ffffffff811ec5a2>] intel_idle+0xb9/0x118
Jul 15 15:54:34 host-37 kernel: [ 86.755072] RSP:
0018:ffffffff81601e88 EFLAGS: 00000046
Jul 15 15:54:34 host-37 kernel: [ 86.755074] RAX: 0000000000000020
RBX: 0000000000000008 RCX: 000Jul 15 17:35:15 host-37 kernel: imklog
5.8.11, log source = /proc/kmsg started.


--
WBR, Andrey Vasilishin CDIG1-UANIC, CDIG1-RIPE


--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/5002E44E.4090809@kpi.ua

Alex Schuster 07-15-2012 08:12 PM

The system's font display problem
 
Mark Knecht writes:

> On Sun, Jul 15, 2012 at 8:09 AM, Nikos Chantziaras <realnc@gmail.com>
> wrote:

> > Do not set anything other than LANG and LC_COLLATE. Then only set
> > vars that differ from LANG. Your /etc/env.d/02locale should look
> > like this:
> >
> > LANG="en_US.UTF-8"
> > LC_COLLATE="C"
> > LC_CTYPE=zh_CN.UTF-8
[...]
> Just double checking here. Is the file /etc/locale.gen now totally
> depreciated or is it still required? The install guide still has it in
> chapter 8 where the file /etc/locale.gen ends up looking pretty much
> identical to the 02locale file.
>
> Or maybe they serve different purposes somehow?

/etc/locale.gen defines which locales are supported on your system.

/etc/env.d/02locale defines which of these locale you are actually using
by setting LANG and LC_* environment variables. Files in /etc/env.d/ end
up in /etc/profile.env (by running the env-update command), which is
evaluated from /etc/profile and as such by every shell. If you want
different settings for your user, override that stuff in your
~/.bash_profile.

Wonko

Mark Knecht 07-15-2012 08:36 PM

The system's font display problem
 
On Sun, Jul 15, 2012 at 1:12 PM, Alex Schuster <wonko@wonkology.org> wrote:
> Mark Knecht writes:
<SNIP>
>> Just double checking here. Is the file /etc/locale.gen now totally
>> depreciated or is it still required? The install guide still has it in
>> chapter 8 where the file /etc/locale.gen ends up looking pretty much
>> identical to the 02locale file.
>>
>> Or maybe they serve different purposes somehow?
>
> /etc/locale.gen defines which locales are supported on your system.
>
> /etc/env.d/02locale defines which of these locale you are actually using
> by setting LANG and LC_* environment variables. Files in /etc/env.d/ end
> up in /etc/profile.env (by running the env-update command), which is
> evaluated from /etc/profile and as such by every shell. If you want
> different settings for your user, override that stuff in your
> ~/.bash_profile.
>
> Wonko
>

So to check my understanding of your answer (and thanks for the
answer!) unless a locale is defined in /etc/locale.gen, and then
locale-gen has also been run, then that locale is not even available
to be evaluated by /etc/profile.

Thanks,
Mark

赵佳晖 07-16-2012 12:14 PM

The system's font display problem
 
Oh,Thank you,It worked

2012/7/15 Nikos Chantziaras <realnc@gmail.com>

On 15/07/12 16:14, 赵佳晖 wrote:

> Hi.all . Just now i just change my locale so i can use the fcitx. But

> after i reboot , the system's fonts display has problem.

> and my locale:

> LANG=en_US.UTF-8

> LC_CTYPE=zh_CN.UTF-8

> LC_NUMERIC=en_US.UTF-8

> LC_TIME=en_US.UTF-8

> LC_COLLATE=en_US.UTF-8

> LC_MONETARY=en_US.UTF-8

> LC_MESSAGES=en_US.UTF-8

> LC_PAPER=en_US.UTF-8

> LC_NAME=en_US.UTF-8

> LC_ADDRESS=en_US.UTF-8

> LC_TELEPHONE=en_US.UTF-8

> LC_MEASUREMENT=en_US.UTF-8

> LC_IDENTIFICATION=en_US.UTF-8

> LC_ALL=



Do not set anything other than LANG and LC_COLLATE. *Then only set vars

that differ from LANG. *Your /etc/env.d/02locale should look like this:



* LANG="en_US.UTF-8"

* LC_COLLATE="C"

* LC_CTYPE=zh_CN.UTF-8



Do *not* do this:



* LC_ALL=



Then run env-update and restart.







--
好好**,天天向上!!!

Neil Bothwick 07-18-2012 02:21 PM

The system's font display problem
 
On Sun, 15 Jul 2012 13:36:29 -0700, Mark Knecht wrote:

> > /etc/locale.gen defines which locales are supported on your system.
> >
> > /etc/env.d/02locale defines which of these locale you are actually
> > using by setting LANG and LC_* environment variables. Files
> > in /etc/env.d/ end up in /etc/profile.env (by running the env-update
> > command), which is evaluated from /etc/profile and as such by every
> > shell. If you want different settings for your user, override that
> > stuff in your ~/.bash_profile.

> So to check my understanding of your answer (and thanks for the
> answer!) unless a locale is defined in /etc/locale.gen, and then
> locale-gen has also been run, then that locale is not even available
> to be evaluated by /etc/profile.

The default, if you have not edited /etc/locale.gen, is to install all
locales. They are built when glibc is emerged, so they will all be
available if you do nothing. /etc/locale.gen enables you to configure
which locales are built, local-gen enables you to apply the new setting
without recompiling glibc.


--
Neil Bothwick

A good pun is its own reword.


All times are GMT. The time now is 05:13 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.