6
enum russian_charsets res;
10
while (fgets(buf,255,stdin)) {
11
if (strlen(buf)<2) break;
13
res = get_russian_charset(buf,0);
15
case RUSSIAN_CHARSET_WIN:
18
case RUSSIAN_CHARSET_ALT:
21
case RUSSIAN_CHARSET_KOI:
24
case RUSSIAN_CHARSET_UTF8:
29
if (buf[strlen(buf)-1]!='\n') printf("\n");