Project

General

Profile

Bug #13412 » foo.c

Test case - Bruno Haible, 2020-12-30 03:25 PM

 
1
#include <locale.h>
2
#include <stdio.h>
3
#include <wchar.h>
4
#include <wctype.h>
5
int main ()
6
{
7
  if (setlocale (LC_ALL, "fr_FR.UTF-8") == NULL)
8
    {
9
      fprintf (stderr, "setlocale did not find the locale.\n");
10
      return 1;
11
    }
12
  printf ("towlower (0x038A) = 0x%04X\n", towlower (0x038A));
13
  printf ("towupper (0x038A) = 0x%04X\n", towupper (0x038A));
14
  printf ("towlower (0x03AF) = 0x%04X\n", towlower (0x03AF));
15
  printf ("towupper (0x03AF) = 0x%04X\n", towupper (0x03AF));
16
  printf ("towlower (0x03B0) = 0x%04X\n", towlower (0x03B0));
17
  printf ("towupper (0x03B0) = 0x%04X\n", towupper (0x03B0));
18
}
(1-1/2)