https://gitlab.synchro.net/main/sbbs/-/merge_requests/440#note_5383
I haven't thoroughly tested it, so I don't know if it happens in all cases, which is why I said "sometimes". I understand that str_is_utf8() is meant to return true if the string contains only valid UTF-8 encoded and ASCII characters.
The issue I'm seeing is with some of my mods - For instance, with my area choosers, they're taking the message group, sub-board, file libraries, and directory names from the BBS's configuration, and it's using those in lightbar menu items. I'm not using any UTF-8 characters in my area choosers, and for the group/sub-board/library/directory names, I had the impression that those don't have UTF-8 characters, but str_is_utf8() is returning true for the text strings in the menu item, and that's causing some display issues in my area chooser mods.
Basically, this change reverts back to previous behavior which did not use str_is_utf8(), and that is enabling my other mods to work as expected for now.
---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net