-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIN: Unable to mmap a file having special characters in file name #56
Comments
https://stackoverflow.com/questions/8831143/windows-api-ansi-functions-and-utf-8 Can somebody help to fix this |
This is the code fix I have done locally to make this work:
|
Thanks for using mio! And apologies for the late reply. mio doesn't support utf8 out of the box, sorry about the inconvenience. I have very little time for open source these days, so I would be glad if someone took up the task of adding utf8 support. |
you could simply have two overloads for
without using all that template mumbo-jumbo.
FYI, this obviously leaks memory. Change it to |
I was trying to mmap a file which has special characters in file name.
アイコン
mmap = mio::make_mmap_source(file.GetFullPath().as_UTF8(), error);
But the mapping fails.. does mio accepts UTF8? or should I be doing something else to read such file correctly.
This returns an invalid handle.
The text was updated successfully, but these errors were encountered: