In my program:

setlocale(LC_ALL, "");
gtk_set_locale();

When run program:

Gdk-WARNING **: locale not supported by C library

And I can't enter cyrillic chars!

In MC cyrillic work well (locale correct) and in desktop my program work well to.