On Tue, Dec 05, 2006 at 07:03:09PM +0100, Enrico Forestieri wrote:

> For example, this is what I get when running
> the attached test program:
> 
> $ env LC_ALL=it_IT.ISO8859-1 ./test-wctype
> towupper(0xe8) = 0xe8
> toupper(0xe8) = 0xc8
> 
> $ env LC_ALL=it_IT.UTF-8 ./test-wctype
> towupper(0xe8) = 0xc8
> toupper(0xe8) = 0xc8

This one...

-- 
Enrico
#include <stdio.h>
#include <ctype.h>
#include <wchar.h>
#include <wctype.h>
#include <locale.h>

int main(void)
{
    setlocale(LC_ALL, "");
    wchar_t wc = 0xe8;
    printf("towupper(0x%x) = 0x%x\n", wc, towupper(wc));
    printf("toupper(0x%x) = 0x%x\n", wc, toupper(wc));
    return 0;
}

Reply via email to