janklab / MatlabProjectTemplate

A template for creating repos for Matlab library and application projects
BSD 3-Clause "New" or "Revised" License
12 stars 1 forks source link

UTF-8 slurping is broken! #27

Open apjanke opened 3 years ago

apjanke commented 3 years ago

The readtext function in internal.util is incorrect! It needs to use '*char' or something like that instead of 'uint8>char'. As is, it'll corrupt non-ASCII characters in UTF-8 files (and maybe break UTF-16 and other fixed-width multibyte encodings completely).