Re: ctype_print, the British Pound and other non-ASCII characters

From: Date: Fri, 26 Feb 2010 21:23:14 +0000
Subject: Re: ctype_print, the British Pound and other non-ASCII characters
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-302413@lists.php.net to get a copy of this message
Hello, Nathan. I'm glad to hear that someone else can reproduce the problem with en_GB.UTF-8. I was worried it was some bad luck quirk that I was never going to get to the bottom of. I tried using en_US.utf8 (and also en_US.UTF-8) in setlocale (and it did not return false, so again looks like the locale is found and accepted). But I still got a return of false from ctype_print for non-ASCII characters. So even with en_US I'm getting bad behaviour. When you switch back to en_US.UTF-8 (or en_US.utf8) do you get true from ctype_print as expected? (I'm hoping that you don't suddenly find ctype_print refuses to behave properly under all locales.) Output from locale shows that all types are 'en_GB.UTF-8' except LC_ALL which is blank (as I believe it should be). Do you know how I can dig further? I don't know anything about debugging PHP or Linux, so I don't know how to trace the source of this strange result.

« previous php.general (#302413) next »