Skip to Content.
Sympa Menu

freetds - Re: [freetds] How to set locales.conf in spanish

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Steve Langasek <vorlon AT netexpress.net>
  • To: TDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] How to set locales.conf in spanish
  • Date: Sun, 12 Jan 2003 13:24:56 -0600

On Sat, Jan 11, 2003 at 06:28:23PM -0500, James K. Lowden wrote:
> > I would like to be able to set 'en_MX', 'en_US' and 'sp_MX' after the
> > creation of the TDS_SOCKET*/LOGIN*/LOCALE* bundle. Theoretically I
> > should be able to set those values before I tds_send_login(...), right?

> If you mean the environment strings, from what I've read, you need to set
> those values before your application starts up, if you want portable code.
> Different libc implementations react differently (or not at all) to
> changes in the environment once the application starts. I think I read
> about that in perl's documentation.

You can always call setlocale() with a specific locale value, instead of
defaulting to the environment settings. This is portable to all
non-broken implementations of setlocale(). :)

--
Steve Langasek
postmodern programmer

Attachment: pgpJmIty4pw2M.pgp
Description: PGP signature




Archive powered by MHonArc 2.6.24.

Top of Page