directory_iterator returns UTF8 using both Visual Studio and Xcode as expected.
wdirectory_iterator, however, returns UTF16 using Visual Studio, and UTF8 using Xcode, despite returning a wchar_t string.
What can I change to get wdirectory_iterator to return UTF32?
An answer to a question I asked previously suggests that changing the locale might be required, however according to 'locale -a' the only locales available are
en_GB, en_GB.ISO8859-1, en_GB.ISO8859-15, en_GB.US-ASCII, en_GB.UTF-8 All are 8 bit, with the possible exception of en_GB
I tried en_GB in case it might not be 8 bit, but this causes boost::filesystem::exists to throw a boost::filesystem::wpath::to_external conversion exception.