pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: x11/xscreensaver 2026Q1 locks and no login (solved)





El 10/10/26 a las 10:15, Roland Illig escribió:
Am 10.10.2026 um 10:01 schrieb Ramiro Aceves:
    return (ispunct((unsigned char) uc) ||        /* Posix: !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~ */
            uc == 0x002D ||       /* HYPHEN-MINUS */
            uc == 0x058A ||       /* ARMENIAN HYPHEN */

That fixes the undefined behavior but is still wrong. The letter U+0121
"ġ" is classified as a punctuation sign because its lower 8 bits are a
punctuation sign. That's a wrong conclusion. Instead, the condition
should be:

(uc < 0x0080 && ispunct((unsigned char)uc)) || …

In that code, the cast to unsigned char is not strictly necessary
anymore, but I'd leave it there for static analyzers like lint(1).

Roland

Hi Roland, thanks for it! Mine was a dirty workaround from someone that does not understand it.

I go now on a trip but if have time at the end of the day will try that. If not I will wait for next weekend.


Thanks so much!
Regards.
Ramiro.




Home | Main Index | Thread Index | Old Index