Hello everyone!
I noticed that if I disable the NULL-check from the document.c file Geany then loads UTF16 and UTF32 encoded files correctly.
A small 'patch' is attached for quick & dirty testing :-)
Regards, -Harri K.
Index: document.c =================================================================== --- document.c (revision 1564) +++ document.c (working copy) @@ -630,7 +630,7 @@ }
// use strlen to check for null chars - filedata->len = strlen(filedata->data); + filedata->len = st.st_size;
/* check whether the size of the loaded data is equal to the size of the file in the filesystem */ if (filedata->len != (gsize) st.st_size)