openSUSE Forums > Archives > SF Archives > ARCHIVES - Miscellaneous » Locale - @euro Or @iso885915 ?

Go Back   openSUSE Forums > Archives > SF Archives > ARCHIVES - Miscellaneous
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - Miscellaneous Questions about SUSE Linux that don't fit anywhere else

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-Dec-2004, 17:42
spaceman
Guest
 
Posts: n/a
Default

Hi.

I thought that the character sets "euro" and "iso885915" were equivalent, and that they were both referring to the ISO-8859-15 set. I just found out the hard way that in SuSE 9.2 some locales are installed as "euro", others as "iso885915:

spaceman@sputnik:/usr/lib/locale> ls -1 | grep euro
br_FR@euro
ca_ES@euro
da_DK@euro
de_AT@euro
de_BE@euro
de_DE@euro
de_LU@euro
en_BE@euro
en_IE@euro
es_ES@euro
eu_ES@euro
fi_FI@euro
fr_BE@euro
fr_FR@euro
fr_LU@euro
ga_IE@euro
gl_ES@euro
it_IT@euro
nl_BE@euro
nl_NL@euro
pt_PT@euro
sv_FI@euro
wa_BE@euro
spaceman@sputnik:/usr/lib/locale> ls -1 | grep iso
en_GB.iso885915
en_US.iso885915
et_EE.iso885915
sv_SE.iso885915

Is this a bug, or is there an explanation for this?

cheers,
spaceman
  #2 (permalink)  
Old 07-Dec-2004, 20:06
spaceman
Guest
 
Posts: n/a
Default

Okay, I figured it out, I was just confused about the way locales work.

For the record, locale names use the following syntax:
language[_territory][.codeset][@modifier]

That means "@euro" is actually a modifier, and does _not_ select the character set. It is used mostly for LC_MONETARY, to indicate that there are two ways in which monetary values can be formatted: for instance French Francs as the old currency and the Euro as the new one.

For "fr_FR", there are three variations in SuSE's /usr/lib/locale:
fr_FR (using the ISO character set)
fr_FR@euro (same as above, but with euro modifier)
fr_FR.utf8 (using the UTF-8 charcater set)

The most informative source I could find about this is here:
http://www.open-std.org/jtc1/sc22/wg20/doc...ro_Handling.pdf
 

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2