/* Collection of code snippets by Arne Vajhøj */
/* (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) */
#include <stdio.h>
#include <ctype.h>
#include <locale.h>

int main()
{
    double x = 12.34;
    char oe = 0xF8;
    printf("%f %d\n", x, isalpha(oe));
    setlocale(LC_ALL, "Danish");
    printf("%f %d\n", x, isalpha(oe));
    setlocale(LC_ALL, "English");
    printf("%f %d\n", x, isalpha(oe));
    setlocale(LC_ALL, "");
    printf("%f %d\n", x, isalpha(oe));
    setlocale(LC_ALL, "C");
    printf("%f %d\n", x, isalpha(oe));
    return 0;
}
