LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (http://www.linuxquestions.org/questions/fedora-35/)
-   -   C locale and system locale (http://www.linuxquestions.org/questions/fedora-35/c-locale-and-system-locale-304562/)

johnnydangerous 03-21-2005 11:44 PM

C locale and system locale
 
"By default, the httpd daemon is now started using the C locale, rather than using the configured system locale setting. This behavior can be changed by setting the HTTPD_LANG variable in the /etc/sysconfig/httpd file."

what is C locale?

frankmulder 03-22-2005 06:33 AM

C locale is the default language, English.

-Frank

johnnydangerous 03-23-2005 02:28 AM

using the C locale, rather than using the configured system locale setting?? and isn't it the same as the configured system locale settings?

frankmulder 03-23-2005 11:28 AM

The C locale is the default locale on which it falls back if it can't find the system locale for some reason (this is English). However, you can still have English as your system locale.

In my case, my system locale is Dutch. If it says "using the C locale, rather than using the configured system locale setting", then it's not using Dutch but English.

In your case, if you still want to use another language than English, you should edit the file you mentioned (/etc/sysconfig/httpd).

-Frank

pessi 04-11-2005 03:37 PM

"C" locale differs on English locales (en_US, en_GB, etc) in quite many things.

Try, for instance, take listing of /usr with "C" locale
Code:

env LC_ALL=C ls /usr
and in English locale:
Code:

env LC_ALL=en_US ls /usr
(so sorting or collating rules are different here).

"C" locale provides programmer an environment of "least surprise", it behaves like the Unix systems behaved before locales were invented. In many shell scripts you can see things like
Code:

export LC_ALL=C
or running a single command with C locale
Code:

LC_ALL=C command
System locale is something specified in /etc/sysconfig/i18n with the LANG variable:
Code:

LANG="en_US.UTF-8"
SUPPORTED="en_US.UTF-8:en_US:en:fi_FI.UTF-8:fi_FI:fi"
SYSFONT="latarcyrheb-sun16"

(There is a problem in FC3 that the system locale cannot be "C", I'm afraid).

--Pekka


All times are GMT -5. The time now is 05:14 PM.