Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:768 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49540 invoked from network); 7 Apr 2003 20:00:20 -0000 Received: from unknown (HELO vckyb1.nw.wakwak.com) (211.9.230.144) by pb1.pair.com with SMTP; 7 Apr 2003 20:00:20 -0000 Received: from at.wakwak.com (at.wakwak.com [211.9.230.135:25]) by vckyb1.nw.wakwak.com (Postfix) with ESMTP id D4A073FE09; Tue, 8 Apr 2003 05:00:16 +0900 (JST) Received: from at.wakwak.com (z18.211-19-95.ppp.wakwak.ne.jp [211.19.95.18]) by at.wakwak.com (8.12.9/8.12.9/2003-03-31) with SMTP id h37K0Gm0061554; Tue, 8 Apr 2003 05:00:16 +0900 (JST) (envelope-from moriyoshi@at.wakwak.com) Date: Tue, 08 Apr 2003 05:03:09 +0900 X-Mailer: EdMax Ver2.85.3F MIME-Version: 1.0 To: Cc: Message-ID: <20030408050309yepn$M@at.wakwak.com> Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit In-Reply-To: <003201c2fd00$bef611e0$0f00a8c0@bambino> References: <003201c2fd00$bef611e0$0f00a8c0@bambino> Subject: Re: [PHP-DEV] Interesting Issue with strtoupper() From: moriyoshi@at.wakwak.com (Moriyoshi Koizumi) Which version of PHP? And what are the locale settings (envs) like? AFAIK a similar case was reported and fixed already. Moriyoshi "Timothy Hitchens \(HiTCHO\)" wrote: > The following is an error that one of the guys at my office found today. > > This is the code snippet that generated the problem... > > echo ("btnText:$btnText
"); > $text = strtoupper(xlat($btnText)); > echo ("text:$text
"); > > ... where the value of xlat($btnText) is "N舖ta". > > It appears that strtoupper() will sometimes produce "N膣TA" and > sometimes the "a" will be correctly uppercased.