LANG=C not English?


Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
Operating Systems Linux Ubuntu LANG=C not English?
# 1  
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.
# 2  
man locale
# 3  
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
# 4  
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.
# 5  
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.
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #761
Difficulty: Medium
Every core of a multi-core CPU has a dedicated L1 cache and that cache is usually shared between the cores
True or False?

9 More Discussions You Might Find Interesting

1. Solaris

/etc/default/init LANG Setting Not Working

Hey guys, I'm setting up a new server(Fujitsu M10-4 / Solaris 10 1/13) to move our app/DB and I'm having trouble figuring out why my LANG setting is not taking effect. I'm trying to set LANG=C in the /etc/default/init file which should make it the default system wide from what I gather. However... (7 Replies)
Discussion started by: kaledragule
7 Replies

2. AIX

Undestanding LANG setting in /etc/environment

Hi All, We had issue with a application which reports process counts in log, application used to log process counts as Integer data type (1500). One fine morning we started seeing process counts in application log as Decimal (1,500). Our UNIX admin did investigate and figured-out that... (5 Replies)
Discussion started by: Aaron Boyce
5 Replies

3. HP-UX

install arabic lang

hi how to install arabic language and set it as default in hpux. also there is any website provide vm for hpunix for testing. (2 Replies)
Discussion started by: drpix
2 Replies

4. Programming

How to do 'export LANG=en" Using C

Hi Could you please help me How to program Linux shell commands using C. I want set Language environment before start a particular application. Example:- export LANG=hi_IN.UTF-8 gedit This will start Localized Hindi( Indian Language) version of the 'gedit', if the Hindi language... (2 Replies)
Discussion started by: Ram Das
2 Replies

5. UNIX for Dummies Questions & Answers

Setting the $LANG info needed

Hello (Very New to UNIX -Solaris 10) I'm trying to set the LANG variable to C but not sure if it's getting set, need some help on this. Currently I have it set to en_GB.UTF-8 I need to set it to C for an install. but when I run set LANG=C and then run echo $LANG its still set to... (2 Replies)
Discussion started by: deedaz
2 Replies

6. Solaris

java.lang.OutofMemoryError in Sun Studio 12

Hello everyone, I have installed Sun Studio 12 in my Sun Solaris 10 (x86) OS. At first, there was nothing wrong with it but recently, I couldn't open the Sun Studio IDE. When I try to open it, I keep on getting the following error messages:... (2 Replies)
Discussion started by: wintersakura
2 Replies

7. UNIX for Dummies Questions & Answers

Where to set the LANG variable

When I login to my AIX server, the LANG variable is automatically being set to En_US. This is causing locale warning messages when I run emacs or perl. The reason seems to be that En_US is not a valid locale (seen by running locale -a). I can change the variable from the command line (export... (3 Replies)
Discussion started by: wvdeijk
3 Replies

8. UNIX for Dummies Questions & Answers

Lang

Hi, I have LANG set to C.iso88591 what does this value mean and what other options do I have? The problem is that I am using mailx to send out reports. When the report arrives the email has a lot of details about a charecter set not being supported. I don't want to have a null value... (0 Replies)
Discussion started by: nhatch
0 Replies

9. UNIX for Dummies Questions & Answers

bc arbitrary precision cal lang

Hello all, I don't know ksh that well but when I try to run a simple script using the bc command I get "unexpected '.' ", has any one encouter this or help me. I'm running under redaht 7.2. Here is a simple example: #!/bin/ksh # kilo=`echo "2495 * .25"|bc` if then echo "LESS THEN"... (2 Replies)
Discussion started by: larry
2 Replies

Featured Tech Videos