Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!texbell!nuchat!moray!urchin!p6.f506.n106.z1.fidonet.org!Bob.Stout From: Bob.Stout@p6.f506.n106.z1.fidonet.org (Bob Stout) Newsgroups: comp.lang.c Subject: Re: Internationalisation, setlocale( Message-ID: <21909.26416874@urchin.fidonet.org> Date: 4 May 90 05:58:54 GMT Sender: ufgate@urchin.fidonet.org (newsout1.26) Organization: FidoNet node 1:106/506.6 - Fulcrum's Edge, Spring TX Lines: 10 Perhaps this is why ANSI uses the category as the first argument to setlocale(). In my implementation, you could simulate a Quebec locale by calling setlocale(LC_ALL, "USA"); setlocale(LC_TIME, "FRANCE");. Once set this way, retrieving the locale using localeconv() would fetch a locale that looked like American English, but with the week days and months, etc. in French. (Yeah, I know that Quebec is more complicated than that - I merely used it as an example. I also support non-integer (second-specified) time zones, and other oddball stuff folks requested from various parts of the world.)