Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79141 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12193 invoked from network); 24 Nov 2014 23:22:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Nov 2014 23:22:11 -0000 Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.216 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.216 imap10-3.ox.privateemail.com Received: from [192.64.116.216] ([192.64.116.216:58440] helo=imap10-3.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2D/44-21335-3ADB3745 for ; Mon, 24 Nov 2014 18:22:11 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 8607A2400D4; Mon, 24 Nov 2014 18:22:08 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap10.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap10.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id lVaUUOfddv73; Mon, 24 Nov 2014 18:22:08 -0500 (EST) Received: from oa-res-27-210.wireless.abdn.ac.uk (oa-res-27-210.wireless.abdn.ac.uk [137.50.27.210]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id CB5762400C7; Mon, 24 Nov 2014 18:22:07 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) In-Reply-To: Date: Mon, 24 Nov 2014 23:22:05 +0000 Cc: Adam Harvey , PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: References: <13B08117-4BE5-4E0D-A3FF-B6A4D1F9584C@ajf.me> To: Sara Golemon X-Mailer: Apple Mail (2.1993) Subject: Re: [PHP-DEV] [RFC] Unicode Escape Syntax From: ajf@ajf.me (Andrea Faulds) > On 24 Nov 2014, at 23:19, Sara Golemon wrote: >=20 >> We would have to require ICU, but that might be worthwhile for PHP 7 >> anyway. Having at least one i18n API that's guaranteed to be = available >> would be nice. >>=20 > It's 2014. I think requiring ICU is reasonable at this point. I also think it would be reasonable to require ICU, especially as it = means we could perhaps enable Joe Watkins=E2=80=99s UString by default, = assuming it actually makes it into PHP 7. That said, I don=E2=80=99t think we should go down the route of making = \u convert to the current encoding. It doesn=E2=80=99t make much sense, = if any, for non-Unicode encodings, and nobody is using UTF-16 or UTF-32. = Plus, it=E2=80=99d be inconsistent, given we don=E2=80=99t convert any = of the other escape sequences in strings anyway! It would be quite weird = if \u{77} converted yet \x77 did not. -- Andrea Faulds http://ajf.me/