/* Moheb Mekhaiel */

#include<stdio.h>
#include <stdlib.h>
#include<string.h>

#include <locale.h>
#include <wctype.h>

int
main(int argc, char** argv)
{
  int wc1;

  char *loc=NULL;

  loc = malloc(255);

  //loc = setlocale(LC_ALL, "de_DE.UTF-8");
  loc = setlocale(LC_ALL, loc);

  if (loc != NULL)
    printf("setlocale returned: %s \n", loc);
  else
  {
    printf("setlocale failed \n");
    exit (-1);
  }

  wc1 = 0x2c80;

  printf(" tolower of 0x%x: 0x%x \n", wc1, towlower(wc1));

  return(0);
}

