This addresses PR/3693 from Jaromir Dolecek <dolecek@moria.ics.muni.cz> but does not really fix it, as the new ctype package has yet to be integrated.