Hi, I am a contributor to an mail hypertext archiving system called hypermail [1], which is written in C.
Recently a bug was raised that one of its parsers had problems when the input string had a nbsp. As you may imagine from my subject, this is because that parser uses sscanf and the nbsp corresponds to UTF-8 U+00A0 character: urlscan = sscanf(inputp, "%255[^] )<>\"\'\n[\t\\]", urlbuff); o you know if there's an sscanf function that is UTF-8 aware? Or, if it doesn't exist, an alternative method to be able to solve this issue? For the moment I see two possibilities: - As the code is already using PCRE, replace all space chars by the simple 0x20, temporarily, while seeing if we can replace the sscanf eventually by regexps. - Convert the input string to wchar and use swscanf instead. If you have any input on the above, I'd appreciate it very much. Thank you in advance, --josé [1] https://github.com/hypermail-project/hypermail