LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-16-2007, 04:28 AM   #1
Karu
Member
 
Registered: Jul 2007
Location: Estonia
Distribution: Slackware
Posts: 53

Rep: Reputation: 16
Tcsh and localization


Newbie question.
I have used zsh and bash shells and my language specific
parameters are OK.
form /etc/profile.d/lang.sh:
Code:
export LANG=et_EE.utf8
But when I use tcsh it defaults to english
etc/profile.d/lang.csh:
Code:
setenv LANG et_EE.utf8
Is there some other/additional palaces where to
set localization ? Reconfigure tcsh?
 
Old 09-16-2007, 11:46 AM   #2
JMJ_coder
Member
 
Registered: Apr 2006
Distribution: Fedora
Posts: 478

Rep: Reputation: 30
Hello,

Quote:
Originally Posted by Karu View Post
Newbie question.
I have used zsh and bash shells and my language specific
parameters are OK.
form /etc/profile.d/lang.sh:
Code:
export LANG=et_EE.utf8
But when I use tcsh it defaults to english
etc/profile.d/lang.csh:
Code:
setenv LANG et_EE.utf8
Is there some other/additional palaces where to
set localization ? Reconfigure tcsh?
You could try putting this in one of these files:

.cshrc or .tcshrc - for only you as a user

/etc/cshrc /etc/tcshrc /etc/csh.login - to make this change global for all users


The name of the exact file(s) depends on your particular system.


I hope this helps.
 
Old 09-16-2007, 12:29 PM   #3
Karu
Member
 
Registered: Jul 2007
Location: Estonia
Distribution: Slackware
Posts: 53

Original Poster
Rep: Reputation: 16
Thanks for suggesting.
It did not work.

Actually /etc/profile.d/lang.csh gets read and my LANG variable gets set:
Code:
> echo $LANG
et_EE.utf8
but it has no effect.

Then I thougt that tcsh is compiled without support for national languages,
but
Code:
> tcsh --version
tcsh 6.15.00 (Astron) 2007-03-03 (i486-intel-linux) options wide,nls,dl,al,kan,sm,rh,filec
As I undersand "nls" means Native Language System, thus
I should expect supporting LANG variable.

This tcsh and localization question in not very important for me, as
I turned to use zsh.
But otherwise I feel challenged ,because
every other aspect of controlling my fresh Slackware install
has succeeded well !
 
Old 09-17-2007, 07:02 PM   #4
JMJ_coder
Member
 
Registered: Apr 2006
Distribution: Fedora
Posts: 478

Rep: Reputation: 30
Hello,

Quote:
Originally Posted by Karu View Post
Thanks for suggesting.
It did not work.

Actually /etc/profile.d/lang.csh gets read and my LANG variable gets set:
Code:
> echo $LANG
et_EE.utf8
but it has no effect.

Then I thougt that tcsh is compiled without support for national languages,
but
Code:
> tcsh --version
tcsh 6.15.00 (Astron) 2007-03-03 (i486-intel-linux) options wide,nls,dl,al,kan,sm,rh,filec
As I undersand "nls" means Native Language System, thus
I should expect supporting LANG variable.

This tcsh and localization question in not very important for me, as
I turned to use zsh.
But otherwise I feel challenged ,because
every other aspect of controlling my fresh Slackware install
has succeeded well !
From what I understand, you are missing an option. Besides the nls, TCSH also requires the option 8b - which allows for usage of 8bit non-ASCII characters. A solution for this requires a recompilation of TCSH.

Why the current binary doesn't include this option escapes me.
 
Old 09-18-2007, 12:13 AM   #5
Karu
Member
 
Registered: Jul 2007
Location: Estonia
Distribution: Slackware
Posts: 53

Original Poster
Rep: Reputation: 16
Thank you very much !
This explains things up !
I thougt it was something like that, but it was hard for newbie to analyze
that.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Localization for Beignner Mustafa^Qasim Linux - Software 1 07-16-2007 12:58 AM
localization sandeepps4 Linux - General 1 06-05-2007 01:39 AM
gettext and localization mifi Linux - Software 0 03-24-2006 07:02 AM
localization question (hebrew) Nightfrost Linux - Software 5 05-24-2005 04:01 PM
Localization of Slackware 9.0 karagh Slackware 10 12-26-2003 09:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration