Closed alemonmk closed 7 years ago
EDIT: I managed to get the libs and project to compile with a fresh VM & VS 2015. CUI went through and tested, it works fine. But GUI was stuck with a C2280 in MainDialog.cpp, Line 842. I'm not gonna touch that.
Anyways, here is the commit. https://github.com/alemonmk/waifu2x-caffe/commit/ba4a975ef11937f439287117840a6c085c03ac99 And here is the CUI executable: https://github.com/alemonmk/waifu2x-caffe/releases/download/git-c7d0206%2Bunicode/waifu2x-caffe-cui.exe
CUIでUNICODEでのビルドにも対応しました。 aaa43282701cf41067e3d1020cca35aa2ba88d0b
Thank you for saving me much headache. :)
What I want is very similar to what #67 requests. Current behavior is very unfriendly for building automation tools with it. The output field of GUI can be overridden to act like -o of CUI, why not -o of GUI? I can just use the CUI to achieve this, but it is not Unicode-aware, it does not correctly process anything not named in system locale.
I know not much in C++ but I tried to make the CUI Unicode-aware, just
_setmode(_fileno(stdout), _O_U16TEXT);
,string
towstring
,"string"
toL"string"
,printf()
towprintf()
,waifu2x-caffe-gui/MainDialog.cpp
,but:
Boost.Build
hates VS 2017 toolset and wasted me ~10 hours,This is very frustrating and I don't bother trying again. I may:
waifu2x-caffe/Source.cpp
and leave the testing to you, orI'm away from coding the next few days so take your time.