LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices



Reply
 
Search this Thread
Old 03-22-2005, 12:44 AM   #1
johnnydangerous
Member
 
Registered: Jan 2005
Location: Sofia, Bulgaria
Distribution: Fedora Core 4 Rawhide
Posts: 431

Rep: Reputation: 30
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?
 
Old 03-22-2005, 07:33 AM   #2
frankmulder
Member
 
Registered: Jun 2004
Distribution: Kubuntu
Posts: 30

Rep: Reputation: 15
C locale is the default language, English.

-Frank
 
Old 03-23-2005, 03:28 AM   #3
johnnydangerous
Member
 
Registered: Jan 2005
Location: Sofia, Bulgaria
Distribution: Fedora Core 4 Rawhide
Posts: 431

Original Poster
Rep: Reputation: 30
using the C locale, rather than using the configured system locale setting?? and isn't it the same as the configured system locale settings?
 
Old 03-23-2005, 12:28 PM   #4
frankmulder
Member
 
Registered: Jun 2004
Distribution: Kubuntu
Posts: 30

Rep: Reputation: 15
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
 
Old 04-11-2005, 04:37 PM   #5
pessi
LQ Newbie
 
Registered: Apr 2005
Posts: 1

Rep: Reputation: 0
"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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
locale: Cannot Set LC_ALL to default locale: No such file or directory. asym Linux - General 10 03-24-2013 09:35 PM
How to change the locale by setting the system default locale letdoit Slackware 6 08-18-2011 04:34 AM
"locale not supported by Xlib, locale set to C" Irad Linux - Software 3 06-25-2006 04:59 PM
locale da Perp Linux - Newbie 7 01-23-2002 02:45 AM
Locale cinnix Linux - General 4 07-13-2001 01:03 AM


All times are GMT -5. The time now is 10:07 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration