2011/9/26 Ruben Van Boxem <vanboxem.ru...@gmail.com>: > Why does mingw-w64 not have a uchar.h header file? There's only a few > typedefs and some functions (which can easily be implemented through the > Win32 API IMHO). > > See the draft proposal here: > http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1040.pdf > > The reason I ask is because the C++11 standard mentions this header and its > C++ counterpart <cuchar>. Although the functions aren't available in msvcrt, > I'm sure I can come up with an implementation if necessary (based on > WideCharToMultiByte and some other code to get as far as utf32... hmm I'll > have to think about that). For the UTF-32 bits there's code floating around > all over the internet, like here: > http://bytes.com/topic/c/answers/517850-converting-utf-16-utf-32-a which > would definitely work with a bit of testing and refactoring. > > Please tell me what you think about this idea. > > Ruben
Sounds interesting. WideCharToMultiByte/MultiByteToWideChar API could handle this. As we don't have here API-conflicts to msvcrt's API, I would give it a try. Patches are welcome for this. Cheers, Kai ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public