How to pass path with non-ASCII characters to std::ifstream on Windows?

Vadim Peretokin <[email protected]>
Newsgroups gmane.comp.gnu.mingw.user
Message-ID <CAK-8PPTUdw-C-butN8_0yQMncZFgVFkiKokbH0GuJuhCGor60w@mail.gmail.com>
I need to get Hunspell to open a file with non-ASCII characters on
Windows and as such I need to patch its myopen function
(https://github.com/hunspell/hunspell/blob/v1.6.2/src/hunspell/csutil.cxx#L123)
which takes in a std::ifstream& stream, const char* path.

As you can see from the link included, hunspell already includes a
workaround for MSVC that uses std::ifstream<char>::open with wchar_t
file names, but unfortunately this function is not available in MinGW
per MinGW wiki.

What can I do to make this work with MinGW? I see that patches to
MinGW have been posted in the past, but using MinGW 7.3.0, I can't get
anything to work.

I've been breaking my head over this for the last three days and would
love any advice on how to get past this.

Thank you!

_______________________________________________
MinGW-Users mailing list
[email protected]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.osdn.me/mailman/listinfo/mingw-users
Also: mailto:[email protected]?subject=unsubscribe
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.