This PR changed on how string format on line 424 and 428 on that line is where the two (or maybe 1) wchar_t * are concatenated, but for some reason my build is weirdly not formatted correctly, It may be cause of not using the build.cmd to build but I can't manage make my zig to compile(it always want WinMain function) probably because i use msys2 and mingw. But as far I can tell it probably good idea to use %ls instead of %s for portability reason, I know that swprintf is automatically treat %s as wide character on some compiler but some of the compiler not treating it as wide character. I found stackoverflow article that explain the difference between %s and %ls as base of my PR, this stackoverflow question, that stackoverflow question and cppreference. But I still wondering how could you compile the project and the time is formatted perfectly.
My build
The release build from github
this is my build script that I use to compile the project
This PR changed on how string format on line
424
and428
on that line is where the two (or maybe 1)wchar_t *
are concatenated, but for some reason my build is weirdly not formatted correctly, It may be cause of not using thebuild.cmd
to build but I can't manage make myzig
to compile(it always want WinMain function) probably because i use msys2 and mingw. But as far I can tell it probably good idea to use%ls
instead of%s
for portability reason, I know thatswprintf
is automatically treat%s
as wide character on some compiler but some of the compiler not treating it as wide character. I found stackoverflow article that explain the difference between%s
and%ls
as base of my PR, this stackoverflow question, that stackoverflow question and cppreference. But I still wondering how could you compile the project and the time is formatted perfectly.My build
The release build from github
this is my build script that I use to compile the project