Apologies for the double email, but it seems I forgot half of the community...
Please reply-to-all so everyone is able to follow the discussion. Thanks! 2011/7/3 Ruben Van Boxem <[email protected]>: > Hello people from mingw.org, > > I have prepared a patch for libstdc++ adding functionality present in > MSVC's STL, namely std::fstream's that can be opened with wchar_t* > arguments. > > The reason MSVC has this extension is simple: there is no standard way > to use std::[io]fstreams to files with non-ASCII characters in their > filenames. Converting the wide string to the local codepage will not > work if the characters aren't representable in that codepage, and > simple *standard compliant* workarounds don't work. Another good > reason for this addition is of course compatibility with MSVC written > software that uses this feature. I have already asked around mingw-w64 > IRC, and the general reaction has of course been positive. > > My original submission with the patch is here: > http://gcc.gnu.org/ml/libstdc++/2011-06/msg00066.html > > With a few messages down containing my updated (final) patch with > configure and macro stuff to enable is when _wfopen is available). I > am aware of the Standards proposal in the discussion, and the reason > it was eventually rejected. There is a new proposal that supercedes > this functionality, but it is not implemented, and I don't see that > happening anytime soon. TR2 std::filesystem is an extension to C++0x > (which also isn't even finished *officially* yet), and thus will take > some time to make it's way into a library implementation. This is an > immediate and much more portable solution, being also implemented in > "the other big STL" for the Windows platform. > > The devs suggest that it has no place in GCC mainline, because, well, > I don't really see why. They suggest the mingw port maintain this > *simple* addition instead. I find that unacceptable and ask for you > support in this issue. You can check the patch, and verify it is a > trivial addition, specific to Windows (or better, *-*-mingw*). > > Please let me know what you think about this, > > Thanks! > > Ruben > ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
