doc: update documentation for IO helper.

- update IO helper ducumentation.
- fix a latent Linux compile error in IO helper.
This commit is contained in:
2024-07-11 09:59:50 +08:00
parent a6c543c1b5
commit 1c2007928d
4 changed files with 53 additions and 1 deletions

View File

@ -28,7 +28,7 @@ namespace YYCC::IOHelper {
return _wfopen(wpath.c_str(), wmode.c_str());
#else
return std::fopen(u8_filepath, u8_mode);
return std::fopen(EncodingHelper::ToOrdinary(u8_filepath), EncodingHelper::ToOrdinary(u8_mode));
#endif
}