M-HT
M-HT
- [x] Have you checked to ensure there aren't other open [Pull Requests](../pulls) for the same change? - [x] Have you added an explanation of what your changes do and...
This PR fixes a problem with in-file encoding detection described in #3777 where detection fails when the first 512 bytes isn't a valid UTF-8 string. The solution is to treat...
In-file encoding detection fails when the first 512 bytes isn't a valid UTF-8 string. Function `g_regex_match_full`, used [here](https://github.com/geany/geany/blob/06acd17cbeab6c0154e752b584aaf5001d9af1e8/src/encodings.c#L351), expects a valid UTF-8 string unless `G_REGEX_RAW` option is used - see...
In function usb_midi_GetStringDescriptor there's a [check for size of structure](https://github.com/TheKikGen/USBMidiKliK4x4/blob/e507929189d6c45175801a1d964c98eaf09b82bc/usb_midi_device.c#L558) instead of check for number of string descriptors. I think this line `if (wValue0 >= sizeof(usbMIDIString_Descriptor) ) {` should be...