View previous topic :: View next topic |
Author |
Message |
bluephoenix Tux's lil' helper

Joined: 01 Nov 2008 Posts: 94
|
Posted: Sat May 30, 2015 4:15 am Post subject: how to display chinese font in console? |
|
|
I just installed gentoo without X. I fully followed the handbook to set the "locale" to support zh_CN.UTF-8. I used systemd instead of openrc.
But when I input "date" command, the output is just the number without "year", "month" and "day". Instead the write blocks were displayed.
When I switch the locale from zh_CN.UTF-8 to en_US.UTF-8, all outputs are correct.
So I know there is something wrong with the "Chinese" in my system. I checked the answer by search engine. They said I should install "zhcon" tool to solve it or make some patch to the kernel. I tried the first method, zhcon works fine, but I need to input the command after every rebooting. It is too aboring. And I don't believe I really need to patch the kernel even the kernel developed so long time and it still cannot support chinese well.
So I come here to find if there is some simple way to solve this issue.
(I can support Chinese well in X when I installed other machine before. This time I just want to solve the PURE console Chinese display issue)
Thank you! |
|
Back to top |
|
 |
yngwin Retired Dev


Joined: 19 Dec 2002 Posts: 4572 Location: Suzhou, China
|
Posted: Wed Jun 03, 2015 12:25 pm Post subject: Re: how to display chinese font in console? |
|
|
bluephoenix wrote: | zhcon works fine, but I need to input the command after every rebooting. |
So add it to your start-up scripts! Since you're not using OpenRC, I can't help you there. _________________ "Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF |
|
Back to top |
|
 |
charles17 Advocate

Joined: 02 Mar 2008 Posts: 2799
|
|
Back to top |
|
 |
bluephoenix Tux's lil' helper

Joined: 01 Nov 2008 Posts: 94
|
Posted: Tue Jun 09, 2015 10:58 am Post subject: |
|
|
Thanks to the above answer and help!
But these are not my favorite answer. I just follow the systemd wiki and did everything and I didn't get the correct Chinese font display. And I know how to add the zhcon to the start script but I think which is not a CLEAN way.
I just want to find out the CLEAN way. So I am still here to wait for the final answer and I will also try to find out it.
Thanks everybody! |
|
Back to top |
|
 |
steveL Watchman

Joined: 13 Sep 2006 Posts: 5153 Location: The Peanut Gallery
|
Posted: Tue Jun 09, 2015 12:37 pm Post subject: |
|
|
bluephoenix wrote: | I just follow the systemd wiki and did everything and I didn't get the correct Chinese font display. And I know how to add the zhcon to the start script but I think which is not a CLEAN way. |
ISTR sth about console-fonts built-in to the kernel, which I think you'd need if you don't want to use zhcon.
Quote: | I just want to find out the CLEAN way. So I am still here to wait for the final answer and I will also try to find out it. |
Personally I don't think there's much wrong with adding a command to a startup script.
Though systemd and "clean" seem like contradictions, adding something to a local script in openrc is pretty clean.
If you can get it working from first boot, all the better ofc. |
|
Back to top |
|
 |
bluephoenix Tux's lil' helper

Joined: 01 Nov 2008 Posts: 94
|
Posted: Sun Jun 21, 2015 11:41 am Post subject: |
|
|
Thanks, steveL
Somehow, I agree with you. I do think systemd is not a so CLEAN and mature software. I face some trouble with it these days.
But systemd's fast booting is really charming. I am so difficult to abundan it. |
|
Back to top |
|
 |
steveL Watchman

Joined: 13 Sep 2006 Posts: 5153 Location: The Peanut Gallery
|
Posted: Sun Jun 21, 2015 5:06 pm Post subject: |
|
|
Blimey, how often do you reboot? ;-)
Seriously, use whatever tf what you want; that's the point of Gentoo and Linux.
I just really do not notice bootup, except when more than one partition needs a fsck, and that's normally done by the time I've found my tea. |
|
Back to top |
|
 |
bluephoenix Tux's lil' helper

Joined: 01 Nov 2008 Posts: 94
|
Posted: Tue Jun 30, 2015 8:28 am Post subject: |
|
|
indeed, I prepare to use gentoo in some embedded system. Later I must consider the real user could reboot their box more often. I don't want them to feel aboring caused by their waiting for box booting.
That's why. ohm~ |
|
Back to top |
|
 |
|