Hi there,

 

Unfortunately I think I have trouble with Bash's locale when I boot to my 
created LFS.

Immediately after loging in, when I issue a "date" command, the output is 
something like this:

 

[][][][] [][]:[][]:[][] (IRDT)

 

Where []s are squares fully filled with white. Also e.g. when I issue

a "cp -v /etc/skel/.bash_profile ~/" the output is:

 

[] /etc/skel/.bash_profile [] -> [] /root/.bash_profile []

 

Where []s are that white squares also!

 

I know it's because I use fa_IR (Farsi/Iran) locale but as you see in

'6.9. Glibc-2.15' 
(http://www.linuxfromscratch.org/lfs/view/development/chapter06/glibc.html),

I remember that I successfully installed fa_IR.UTF-8 (it means Farsi of Iran 
with UTF-8 codepage) locale by:

 

localedef -i fa_IR -f UTF-8 fa_IR

 

I also created config files as below:

 

The '/etc/sysconfig/console' file is:

 

cat > /etc/sysconfig/console << "EOF"
# Begin /etc/sysconfig/console

UNICODE="1"
# End /etc/sysconfig/console
EOF

 

And the '/etc/profile' file is:

 

cat > /etc/profile << "EOF"
# Begin /etc/profile

export LANG=fa_IR.UTF-8

# End /etc/profile
EOF

 

I googled but I could not find out in which place I've done things wrong.

Could you please help me to sort this problem out?

 

Thanks in advance!                                        
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to