These are chat archives for supercollider/supercollider

20th
Mar 2017
Brian Heim
@brianlheim
Mar 20 2017 23:24
figured out how to convert the filenames read from the windows filesystem to UTF-8
and wrote a little test driver that works with SC_Win32Utils.h
i think it's just a matter of finding all the call sites of the OS filesystem API now
the relevant code snippet is:
wchar_t* unconverted = ... ;
std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>, wchar_t> converter;
[const] char* converted = converter.to_bytes(unconverted).c_str();
Brian Heim
@brianlheim
Mar 20 2017 23:34
without this conversion (on my UTF-8 encoded terminal) asking for the "My Documents" folder printed "C:\Users\t�st �ser\Documents".
with the conversion I correctly get "C:\Users\tést üser\Documents"
Rainer Schütz
@bagong
Mar 20 2017 23:36
Oooh, that's fantastic!!!
I am completely covered with stuff, atm. But in about 2 days I'll be happy to join the effort...
Brian Heim
@brianlheim
Mar 20 2017 23:38
no worries. i am working on a paper for ICMC right now and don't have time to pursue this further at the moment
I got obsessed with this for a few hours today once I realized how close I actually was to putting all the pieces together
Rainer Schütz
@bagong
Mar 20 2017 23:44
Cool!