Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to display chinese font in console?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
bluephoenix
Tux's lil' helper
Tux's lil' helper


Joined: 01 Nov 2008
Posts: 94

PostPosted: Sat May 30, 2015 4:15 am    Post subject: how to display chinese font in console? Reply with quote

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
View user's profile Send private message
yngwin
Retired Dev
Retired Dev


Joined: 19 Dec 2002
Posts: 4572
Location: Suzhou, China

PostPosted: Wed Jun 03, 2015 12:25 pm    Post subject: Re: how to display chinese font in console? Reply with quote

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
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2742

PostPosted: Wed Jun 03, 2015 12:36 pm    Post subject: Reply with quote

There is https://wiki.gentoo.org/wiki/Localization/Guide#systemd and there should also be something like consolefont in https://wiki.gentoo.org/wiki/Systemd#Native_services
Back to top
View user's profile Send private message
bluephoenix
Tux's lil' helper
Tux's lil' helper


Joined: 01 Nov 2008
Posts: 94

PostPosted: Tue Jun 09, 2015 10:58 am    Post subject: Reply with quote

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
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Tue Jun 09, 2015 12:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
bluephoenix
Tux's lil' helper
Tux's lil' helper


Joined: 01 Nov 2008
Posts: 94

PostPosted: Sun Jun 21, 2015 11:41 am    Post subject: Reply with quote

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
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Sun Jun 21, 2015 5:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
bluephoenix
Tux's lil' helper
Tux's lil' helper


Joined: 01 Nov 2008
Posts: 94

PostPosted: Tue Jun 30, 2015 8:28 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum