Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63735 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53992 invoked from network); 1 Nov 2012 18:37:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Nov 2012 18:37:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.210.170 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.210.170 mail-ia0-f170.google.com Received: from [209.85.210.170] ([209.85.210.170:56270] helo=mail-ia0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 01/93-18236-281C2905 for ; Thu, 01 Nov 2012 13:37:54 -0500 Received: by mail-ia0-f170.google.com with SMTP id e16so2470290iaa.29 for ; Thu, 01 Nov 2012 11:37:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:x-originating-ip:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding:x-gm-message-state; bh=hqIcTb5J6RZB0ph99ookZzmifN4Excb6sSJepdLjFGY=; b=YriqQs89UcSnAwhLuuO+zJaphYTOD5N3BfyMh2NtPLb4gboAK62E9dkTNHvSRxtHHX IJL1EnbMLzpcV9NuzE84o+oLPQvYttiygMph61rB2ckrDmdMWP876IjHA69f3E9yQbY+ FFIlNo9KNnPzPVxCz9DvlS797zbBxSQI8Zt73FFIxDrlyXzmXBP0aRhjAozG12J9oNjk MtUKOEC42ivs1t8LgUN4Q5SizdBWDFIO7RPfwsLbaGrqFvA3vMnSJJOFlhMsis6NADFC gwxyE1j5fb09EWFX00eifRFRJ3iSZlapzb3OiucaVv0dPUM24DlcuiSbGSHAsrdEOju0 pAyw== MIME-Version: 1.0 Received: by 10.50.77.136 with SMTP id s8mr2192180igw.74.1351795071918; Thu, 01 Nov 2012 11:37:51 -0700 (PDT) Sender: php@golemon.com Received: by 10.64.21.193 with HTTP; Thu, 1 Nov 2012 11:37:51 -0700 (PDT) X-Originating-IP: [173.252.71.3] In-Reply-To: References: <509006DA.6030200@sugarcrm.com> Date: Thu, 1 Nov 2012 11:37:51 -0700 X-Google-Sender-Auth: mCFvNFC3tlufracNvtiYpN9EUk8 Message-ID: To: Adam Harvey Cc: PHP internals Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQmm//vVchKYB3SXYOBNFuIorxTV72AtmfOH52TJpdbQ56Oo5iazSe9hMZFPBbUs1LmG3/AW Subject: Re: [PHP-DEV] [RFC] ICU UConverter implementation for ext/intl From: pollita@php.net (Sara Golemon) Okay, I can be convinced. :) Diff and RFC updated. And I agree on the slight sense of unease at adding a third encoding converter, but ICU is so far ahead of the other two that I really feel we should encourage its use over iconv and mbstring. -Sara On Wed, Oct 31, 2012 at 6:40 PM, Adam Harvey wrote: > On 31 October 2012 06:18, Sara Golemon wrote: >> With the exception of renaming the UConverter::UCNV_* constants to >> remove the UCNV_ prefix, I believe I've addressed the concerns thus >> far. ((Waiting to hear if anyone else wants to weigh in on the >> contants)) The RFC has been updated accordingly.+ > > I would say that unprefixing makes sense in general, particularly > since that's what happens in other intl classes (such as Collator). > Prefixing the callback reason constants with REASON_* seems like a > good compromise there =97 as you said upthread, they are different to > the other constants defined on UConverter. Beyond that, I think the > type constants would do fine as direct UConverter constants > (UConverter::UTF8, for instance, makes sense to me =97 in general, > you're using a converter because you want to deal with encoding > types). > > I'm +1 on the functionality in general. The thought of another > encoding conversion API in PHP doesn't fill me with great joy given we > already have mbstring and iconv, but it does provide features neither > of those libraries provide: combined with the existing intl > functionality and the ever-increasing need for internationalisation > support, I'd like to think we might look at nudging intl towards being > the usual way of providing that functionality in PHP. > > Thanks, > > Adam, who is apparently in a run-on sentence kind of mood today.