UNICODE string case-conversion

Luke Kenneth Casson Leighton lkcl at samba.org
Mon Jan 31 04:54:17 GMT 2000

On Sun, 30 Jan 2000, Steve Langasek wrote:

> On Mon, 31 Jan 2000, Luke Kenneth Casson Leighton wrote:
> > hey, this is probably more of an NT developer question than anything, but
> > um... i need a strlowerW() function.
> > i.e i need a UNICODE function that converts Unidode chatacters to lower
> > case. firstly, does such a function exist, and does it work sensibly on
> > russian etc alphabets, on NT?
> For comparison, Wine has the internal functions towlower() and towupper(),
> which operate on single characters.  These are exposed in the API as
> towlower/towupper in CRTDLL and apparently also in 'ntdll'.

ohh, ver' cool.
> Are WCHARs treated as fixed length in NT?  If not, then there may not be an

yes they are.  they don't use utf8.

> In theory, the towlower() function found in glibc 2.1 could also be of use,
> but the behavior of this function is governed by the current locale, so this
> may not be a good choice for your your situation.

wel,, it would, if we could set it.

More information about the samba-technical mailing list