Re: tolower
From: Martijn Lievaart (m_at_remove.this.part.rtij.nl)
Date: 12/04/03
- Next message: Greg Comeau: "Re: [corr] Re: writing to a string"
- Previous message: Gene Wirchenko: "Re: Char to Int"
- In reply to: Gergely Buday: "tolower"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Greg Comeau: "Re: [corr] Re: writing to a string"
- Previous message: Gene Wirchenko: "Re: Char to Int"
- In reply to: Gergely Buday: "tolower"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|