#include #include #include #include #include void affiche_signed_char () { char c = CHAR_MIN; do if (isprint ((int) (unsigned char) c)) printf ("%d[%c]", c, c); while (c++ != CHAR_MAX); } void affiche_unsigned_char () { unsigned char c = 0; do if (isprint ((int) c)) printf ("%c", c); while (c++ != UCHAR_MAX); } int main () { affiche_signed_char (); affiche_unsigned_char (); setlocale (LC_ALL, "fr_FR"); // "normalement" setlocale (LC_ALL, ""); printf ("\napres setlocale\n"); affiche_signed_char (); return EXIT_SUCCESS; }