On 2022-05-03 17:41 +0430, Ali Farzanrad <ali_farzan...@riseup.net> wrote: > > Hi Florian, > > Yes, I read the RFC, it should work, but I couldn't test it yet, because > my domain manager is a little lazy (I've registeret 2 subdomains for my > domain, but it is not listed in name servers yet). I'll probably test > it tomorrow. > > I read the isalnum man page, it said that isalnum might have different > behavior based on locale, so I decide to not use that. Is it OK?
No, please do a setlocale(LC_CTYPE, ""); at the beginning of chngproc, before the unveil and then use isalnum instead of handrolling it. It will fit into chngproc, so no need for another function -- I'm not entirely sure you are real.