#include "stdio.h" #include #include int main(void) { setlocale(LC_ALL, "de_DE.UTF-8"); if ( strcoll("!", ",") > 0 && strcoll("!", ".") < 0 ) { printf("de_DE.UTF-8: You shouldn't see this.\n"); } setlocale(LC_ALL, "C"); if ( strcoll("!", ",") > 0 && strcoll("!", ".") < 0 ) { // FreeBSD prints this printf("C: You shouldn't see this.\n"); } }