setlocale(LC_ALL, "ru-RU.UTF8");
if (argc == 1) {
std::cerr << "Error: Alphabet file not specified\n";
return 1;
}
std::unordered_map <wchar_t, int> alphabet;
std::wifstream alphabet_file(argv[1]);
if (!alphabet_file) {
std::cerr << "Error: Alphabet file not found\n";
return 1;
}
alphabet_file.imbue(std::locale("ru-RU.UTF8"));