Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Help with using and activating locale
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Languages
View previous topic :: View next topic  
Author Message
noathustra
Tux's lil' helper
Tux's lil' helper


Joined: 08 Sep 2003
Posts: 129
Location: NYC

PostPosted: Sat Jan 31, 2004 1:55 am    Post subject: Help with using and activating locale Reply with quote

I use Gentoo for an X-less server. I connect using ssh. I get some Japanese mail and I want to be able to read it in mutt.

I am given to understand that I need to install and activate appropriate locales. I don't know how to do this and can't find a howto.

Any advice would be greatly appreciated.
Back to top
View user's profile Send private message
qingl
n00b
n00b


Joined: 02 Feb 2004
Posts: 6
Location: Changsha, Hunan, China

PostPosted: Tue Feb 03, 2004 11:35 am    Post subject: Reply with quote

Code:

locale -a | grep ja

Will show you available japanese locales, if you don't see any output, you can use localedef to "produce" one:
Code:

localedef -i ja_JP -f EUC-JP ja_JP


To be able to display japanese, just set environment variable LC_CTYPE to appopriate locale, ie. "export LC_CTYPE=ja_JP"
Back to top
View user's profile Send private message
qingl
n00b
n00b


Joined: 02 Feb 2004
Posts: 6
Location: Changsha, Hunan, China

PostPosted: Tue Feb 03, 2004 11:38 am    Post subject: Reply with quote

If you don't have xserver available, you need to install a virtual console, i myself use zhcon - zhcon.sf.net (framebuffer required)
Back to top
View user's profile Send private message
noathustra
Tux's lil' helper
Tux's lil' helper


Joined: 08 Sep 2003
Posts: 129
Location: NYC

PostPosted: Sat Feb 14, 2004 1:27 am    Post subject: Reply with quote

Thank you for your advice. I because I ssh into the box, I can't use a console that uses the framebuffer. I will keep looking though.
Back to top
View user's profile Send private message
noathustra
Tux's lil' helper
Tux's lil' helper


Joined: 08 Sep 2003
Posts: 129
Location: NYC

PostPosted: Fri Feb 20, 2004 6:17 pm    Post subject: Reply with quote

I solved problem by defining UTF-8 locales for Japanese. I configued putty to read UTF-8 and things are working pretty well. Your advice got me on the right track. Thank you.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Languages 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