Back to index

glibc  2.9
Functions | Variables
bug14.c File Reference
#include <locale.h>
#include <wchar.h>
#include <stdio.h>
#include <stdlib.h>

Go to the source code of this file.


int main (void)


static const char string []

Function Documentation

int main ( void  )

Definition at line 12 of file bug14.c.

  if (setlocale (LC_ALL, "de_DE.UTF-8") == NULL)
      puts ("cannot set locale");
      exit (1);

  wchar_t s[7];
  int n = sscanf (string, "%l[\x80\xc2]", s);
  if (n != 1)
      printf ("return values %d != 1\n", n);
      exit (1);

  return 0;

Here is the call graph for this function:

Variable Documentation

const char string[] [static]
Initial value:

Definition at line 8 of file bug14.c.