If I want to use strstr on an unsigned char string (the "haystack") containing utf-8 characters, and the "needle" (search for string) is signed, will this matter?
With normal ascii characters I know it does not, but I'm asking because I don't use multi-byte alphabets myself so it's hard for me to verify that a search which includes utf-8 in both the unsigned and signed string will match. The haystack is unsigned because it's easier to count out the extra utf bytes (for another purpose) but I don't need to do that to the needle, which is actually a (signed) gchar returned by an API function. So I'd rather leave them both the way they are, if that is okay, which I suspect it is, but figured I'd better ask.