Re: tolower

From: Martijn Lievaart (m_at_remove.this.part.rtij.nl)
Date: 12/04/03


Date: Thu, 04 Dec 2003 18:29:35 +0100

On Thu, 04 Dec 2003 08:24:02 -0800, Gergely Buday wrote:

> Hi Folks,
>
> thanks for your help. This is a friendly place on the net.
>
> I have a question concerning the tolower function mentioned in
> ctype.h.
> So, if I'm using iso-latin-2 (Central European codeset), will it work
> correctly
> on accented letters?

Yes, if your locale is set to iso-latin-2 it should. Check your compilers
documentation on how it handles locales, you can probably set a LANG
environment variable or the OS knows because you told it so. You can
always query or set the locale with setlocale().

Note that the answer for C++ is much more complictated, C++ has many more
ways to handle locales. The above works in C++ too, so don't worry to much
about that.

HTH,
M4



Relevant Pages

  • Cant search from www.cookbook.com.
    ... # This is the query file for the query.htm query form. ... # Don't allow more than 300 total hits in the result set. ... # the browser. ... # The locale effects the formatting of dates, times, and numbers. ...
    (microsoft.public.inetserver.indexserver)
  • Re: Querying on multiple languages.
    ... I cudn't get examples in platform SDK. ... Using ADO.Net OLEDB Provider and giving "Locale Identifier" ... My connection string looks like, ... Using IXSSO object to query indexing service. ...
    (microsoft.public.inetserver.indexserver)
  • Re: Querying on multiple languages.
    ... >> developed in .Net which uses Sql to query index server. ... languages in my ... >irrespective of what I gave as Locale Identifier. ...
    (microsoft.public.inetserver.indexserver)
  • Re: Querying on multiple languages.
    ... > developed in .Net which uses Sql to query index server. ... I tried giving "Locale Identifier" in connection string as 1031, ...
    (microsoft.public.inetserver.indexserver)
  • Re: List of reentrant C library functions
    ... TLS -- thread-local storage ... LOCALE -- thread lock for locales ... a call to setlocale, plus the default time string buffer ... xctype.c -- contains ctype information that can be changed by ...
    (comp.lang.c)