Sorry,Since starting in Windows 10 version 1803 (10.0.17134.0), the
Universal C Runtime supports using a UTF-8 code page. Two bytes for every
wide character may not be enough,best to use wcstombs (NULL, wcstr, 0) to
get the size correctly.here is the patch.
傅继晗 于2023年3月23日周四 16:21写道:
> I was goi
I was going to refactor these two functions, but after LIU Hao's
explanation, I realized that I just took it too easy, and more thought
should be given to windows than linux, so I gave up on refactoring and just
fixed its bugs.
Even if the locale was consistent with the input filename, it would