Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!usc!snorkelwacker!spdcc!xylogics!transfer!lectroid!jjmhome!cpoint!frog!barr From: barr@frog.UUCP (Chris Barr) Newsgroups: comp.lang.c Subject: Re: Internationalisation, setlocale() Summary: Name directories '{country}_{language}' Message-ID: <14535@frog.UUCP> Date: 5 May 90 00:48:00 GMT References: <11071@cbmvax.commodore.com> Organization: Charles River Data Systems Lines: 23 In article <11071@cbmvax.commodore.com>, valentin@cbmvax.commodore.com (Valentin Pepelea) writes: > The ANSI C function setlocale() allows the programmer to set the locale to > be used in localised functions. As examples we are given > > /usr/lib/locale/german/LC_MESSAGES/ contains message catalogues > /LC_COLLATE collation (sorting) information > /LC_TIME time & date information > /LC_NUMERIC number format infomation > /LC_MONETARY monetary symbol & format info > > But this is rather confusing. While messages and collation information varies > according to language, time format and monetary information is country specific. > So how are locale directories supposed to be organised? Name directories for BOTH country and language. Files which are the same for different 'locales' might be linked, e.g. messages in switz_french & canada_french. e.g.: /usr/lib/locale/switz_german/ /usr/lib/locale/switz_french/ /usr/lib/locale/canada_french/ /usr/lib/locale/canada_english/