Open GoogleCodeExporter opened 9 years ago
Windows is yuk!
Looks like Linux just works with utf-8 filenames, and only windows has to
convert to wchar_t.
I will include this with a planned change to switch to TFile everywhere. That
will reduce the number of places where fopen has to be changed.
Original comment by theraysm...@gmail.com
on 12 Sep 2014 at 12:59
When Unicode came up Microsoft has made big efforts to convert the entire OS to
Unicode while Linux only implemented a cheap workaround. On Linux you pass
Unicode paths as UTF8. This looks fine on the first look. But if you work more
with file paths on Linux you will note the drawbacks:
Imagine you write a function on Linux to read the content of an entire Unicode
folder tree and then you want to sort the files alphabetically. You can't sort
UTF8 paths. You have to convert each and every filename to UTF16, sort the
files and then convert back to UTF8. This is inefficient. Microsoft clearly did
the better work here. In a C++ project for Windows you store all paths in a
wstring and that's it!
Original comment by smaragds...@gmail.com
on 13 Sep 2014 at 3:31
Original issue reported on code.google.com by
smaragds...@gmail.com
on 16 Jul 2014 at 5:32