ja používam napríklad
Kód:
bool compareLower( wchar_t c1, wchar_t c2 ) {
std::locale loc ( "Slovak_Slovakia" );
return std::tolower( c1, loc ) < std::tolower( c2, loc );
}
a
Kód:
#ifdef WIN32
loc = setlocale( LC_ALL, ".1250" );
#else
loc = setlocale( LC_ALL, ".utf8" );
#endif
if( loc == NULL ) {
fprintf( stderr, "Unable to establish locale\n" );
return;
}