- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Difference between C.utf8 and en_us.utf8? (points!...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2009 04:05 AM
тАО05-12-2009 04:05 AM
I'm curious if somebody knows if there are any (which?) differences between C.utf8 and en_us.utf8 locales (on HP-UX 11.31)?
The first three truly informative answers will be generously rewarded with points!
Thanks, Christian
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2009 04:34 AM - last edited on тАО02-04-2021 01:38 PM by Ramya_Heera
тАО05-12-2009 04:34 AM - last edited on тАО02-04-2021 01:38 PM by Ramya_Heera
Re: Difference between C.utf8 and en_us.utf8? (points!)
Hi,
C.utf8 locale supports Computer English language whereas en_us.utf8 locale supports United state English.
Read this document for more details.
https://internal.support.hpe.com/hpesc/docDisplay?cc=us&docId=emr_na-c02722594&lang=en-us
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2009 04:44 AM
тАО05-12-2009 04:44 AM
Re: Difference between C.utf8 and en_us.utf8? (points!)
Kind regards, Christian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2009 05:17 AM
тАО05-12-2009 05:17 AM
SolutionC = POSIX standards-compliant default locale. Only strict ASCII characters are valid.
C.utf8 = POSIX standards-compliant locale, extended to allow the basic use of UTF-8. No character upper-lower case relationships and collation orders defined beyond ASCII.
(In other words: this sorts non-ASCII characters strictly according to their Unicode character encoding value. It does not understand that upper and lower case "A with diaeresis" are two versions of the same character and should be sorted near each other. For non-Latin alphabets, your guess is as good as mine.)
For all C.* locales, the default currency symbol is undefined -> POSIX default "$" is used. Thousands separators are not used in large numbers.
en_US.utf8 = American English UTF-8 locale.
It "knows" which non-ASCII Unicode characters are upper/lower case pairs, and sorts them together, upper case immediately before lower case. It also has default sorting orders defined for various non-Latin alphabets.
The currency symbol is "$" and the international version is explicitly defined as "USD ".
A comma is used as a thousands separator.
12-hour time presentation is preferred.
The answer to an Y/N question may also be written out as "yes" or "no" (case insensitive).
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2009 08:03 AM
тАО05-12-2009 08:03 AM
Re: Difference between C.utf8 and en_us.utf8? (points!)
Locales with C, are for American Nerd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2009 10:40 PM
тАО05-12-2009 10:40 PM
Re: Difference between C.utf8 and en_us.utf8? (points!)
Kind regards, Christian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2009 11:51 PM
тАО05-12-2009 11:51 PM
Re: Difference between C.utf8 and en_us.utf8? (points!)
Here is a script fragment to do the compare:
CATS="LC_CTYPE LC_COLLATE LC_MONETARY LC_NUMERIC LC_TIME LC_MESSAGES"
echo "Doing C.utf8:"
LANG=C.utf8 locale -k $CATS > C.utf8.out
echo "Doing en_US.utf8:"
LANG=en_US.utf8 locale -k $CATS > en_US.utf8.out
echo "< C.utf8"
echo "> en_US.utf8"
diff C.utf8.out en_US.utf8.out
The differences are in:
int_curr_symbol
currency_symbol
mon_decimal_point
mon_thousands_sep
mon_grouping
negative_sign
int_frac_digits
frac_digits
p_cs_precedes
p_sep_by_space
n_cs_precedes
n_sep_by_space
p_sign_posn
n_sign_posn
crncystr
thousands_sep
grouping
d_t_fmt
d_fmt
t_fmt
yesexpr
noexpr
Instead of localedef(1m), I should have said nl_langinfo(3C).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2009 12:27 AM
тАО05-13-2009 12:27 AM
Re: Difference between C.utf8 and en_us.utf8? (points!)
I think I now have all the answers and details that I need for this question.
Kind regards, Christian