The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Displaying the available locales in english eamani_sun Linux 1 07-27-2008 06:30 AM
Lang nhatch UNIX for Dummies Questions & Answers 0 10-13-2004 08:36 AM
gzip english version mfran2002 SCO 3 11-28-2003 09:27 AM
Please decode in English ST2000 Shell Programming and Scripting 4 07-16-2002 10:33 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 03-03-2008
dotancohen's Avatar
Registered User
 

Join Date: Feb 2008
Location: חיפה
Posts: 21
LANG=C not English?

On Ubuntu 7.04, why would the "C" LANG parameter not be English:
Code:
$ LANG=C locale
LANG=C
LANGUAGE=he_IL:he:en_GB:en
LC_CTYPE="he_IL.utf8"
LC_NUMERIC="he_IL.utf8"
LC_TIME="he_IL.utf8"
LC_COLLATE="he_IL.utf8"
LC_MONETARY="he_IL.utf8"
LC_MESSAGES="he_IL.utf8"
LC_PAPER="he_IL.utf8"
LC_NAME="he_IL.utf8"
LC_ADDRESS="he_IL.utf8"
LC_TELEPHONE="he_IL.utf8"
LC_MEASUREMENT="he_IL.utf8"
LC_IDENTIFICATION="he_IL.utf8"
LC_ALL=he_IL.utf8
How can I make that an English-language locale, and which English is preferable? Thanks in advance.
Reply With Quote
Forum Sponsor
  #2  
Old 03-05-2008
Registered User
 

Join Date: May 2006
Posts: 101
man locale
Reply With Quote
  #3  
Old 03-05-2008
dotancohen's Avatar
Registered User
 

Join Date: Feb 2008
Location: חיפה
Posts: 21
Thank you grumpf. I did of course read the locale man and info pages before posting here, and I googled locale, c, and utf-8. I could not find the information for changing the C locale in the man page, nor the info page (which is exactly the same as the man page), even after reading it again at your suggestion. Maybe your man page differs from mine, if so please post it. Mine looks a lot like this:
locale(1): locale-specific info - Linux man page
Reply With Quote
  #4  
Old 03-05-2008
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,274
Try:
Code:
LC_ALL=C
# or maybe 
LC_ALL=POSIX
Each of those settings yo displayed is an enviromnment variable that can be set independently. LC_ALL is the only one that changes all of the other settings.

One place that explains locale settings in a useful way is to go to
The Open Group - Making Standards Work and search for locale. It is many pages of reading. Neo also placed a link to get the POSIX standards in pdf format - it is on the forums here.
Reply With Quote
  #5  
Old 03-11-2008
dotancohen's Avatar
Registered User
 

Join Date: Feb 2008
Location: חיפה
Posts: 21
Thank you. I've tried several things and now LANG=C is in English. I'm not sure what worked, but I have the result that I need. Thanks.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
linux, ubuntu

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:34 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0