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: "Coleman, Dave" <DColeman AT US.TIAuto.com>
  • To: "'freetds AT lists.ibiblio.org'" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] How to set locales.conf in spanish
  • Date: Mon, 13 Jan 2003 08:08:23 -0500

Thanks, do you know if v0.60 pays enough attention to locale for this to
make a difference in the error messages passed back to the server?

> -----Original Message-----
> From: Steve Langasek [SMTP:vorlon AT netexpress.net]
> Sent: Sunday, January 12, 2003 2:25 PM
> To: TDS Development Group
> Subject: Re: [freetds] How to set locales.conf in spanish
>
> 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




Archive powered by MHonArc 2.6.24.

Top of Page