Y
Hacker News
new
|
ask
|
show
|
jobs
by
sortie
3775 days ago
Just use setlocale(LC_ALL, "") in main, and use mbrtowc to translate from whatever the system encoding is into the wchar_t type. There's no need to bake assumptions about the system encoding into most programs.