Closed aaronryank closed 6 years ago
This is due to getwc trying to read a multibyte char from a string that was fmemopen'ed from a single-byte string.
getwc
fmemopen
Possible fixes:
/tmp/.cubically-input-(random string)
https://stackoverflow.com/q/45624195/6850771
Is it possible to manually parse the input as bytes and convert it to UTF-8?
Oh that's right, I fixed it. Bytes from Cubically's codepage must be present in the string as Cubically SBCS, not UTF-8.
This is due to
getwc
trying to read a multibyte char from a string that wasfmemopen
'ed from a single-byte string.Possible fixes:
fmemopen
equivalent for wide chars/tmp/.cubically-input-(random string)