compatibility functions for missing ctype extension FS#2873