Open rnruxn773 opened 1 day ago
I'm afraid you are mixing characters from 2 different locales, I'm not sure how conversion function for CP_ACP codepage can react. I Will try to not make the function crash however. A workaround may be, maybe, to use directly the complete string instead of composing ti with stringvars.
Sorry for the confusion, but mixing characters from two different locales was just an example for the sample code. In reality, the function should crash if it contains any multibyte characters, regardless of the locale. My Win 11 is set to the Japanese locale, and I've confirmed that it crashes even when only Japanese characters are included. This happens with or without the Japanese localization patch (OBJA).
I've attached the ESP plugin for the code mentioned above, so please check it if needed. FileExists_test.zip
Hi, I reproduced the crash with the sample script, I had to force japanese locale on my end too. Crash happens inside DoStringExtractHook.
Since xOBSE-22.10beta2, specifying a path containing non-alphanumeric multibyte characters such as Chinese or Russian in the FileExists function causes an immediate crash.
The issue can be reproduced with the following code: