mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-12-06 17:41:24 +00:00
816 B
816 B
libSceCesCs
change [MBCS string conversions]
- MBCS string conversions (libSceCesCs) - zero-filled contexts remain unverified outside the measured
sceCesMbcsStrToUtf8Strcase with valid buffers and room for a terminator. The UCS-2 forms and other profiles have limited coverage. The MBCS string conversions and their length queries follow a PS5 payload process (firmware 13.60) with Cp1252 and EUC-JP. They clear the lengths and write a terminator before checking the context, source and destination, in that order. A source limit of 0 reads up to the terminator. The output reserves space for a terminator, and errors preserve the converted text, counts and terminator. UTF-8 decoding followssceCesUtf8ToSbc, and a UTF-16 surrogate returns0x805C0015.