There is the POSIX library in c++ support wchar_t? if not, then how is it possible to solve this problem?
For example, I need open opendir(wchar_t*)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s no POSIX wchar_t version of opendir. Your platform may have one if you are lucky. Otherwise, you’ll have to use something like the iconv library to convert your wide character string into UTF-8 (or whatever character encoding your file system API uses).