php-i18n Digest 30 May 2004 06:17:29 -0000 Issue 231

Topics (messages 722 through 726):

Re: Converting "\u00F4" style characters
        722 by: l0t3k
        723 by: Michael Wallner
        724 by: Michael Wallner
        725 by: l0t3k

Re: iconv with UTF-7-IMAP support
        726 by: Moriyoshi Koizumi

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
"Michael Wallner" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]

>Thanks, but... it has been renamed to php-i18n.obsolete.
>Is there a new repository?
i just forwarded to him an archive which supersedes the current cvs at the
site. i think he's midway into replacing the old cvs.

>>I'm searching for the code that handles date formatting
>>with the format strings defined in the ICU files...
you do know that that code is in C, right ? you are probably better of
looking at the original CPP code here :

http://oss.software.ibm.com/cvs/icu/icu/source/i18n/

look form smpdftm.cpp and decimfmt.cpp

l0t3k

--- End Message ---
--- Begin Message ---
Hi L0t3k, you wrote:

> i just forwarded to him an archive which supersedes the current cvs at the
> site. i think he's midway into replacing the old cvs.

Yes, you're right: http://cvs.voltex.jp/php-i18n/

> you do know that that code is in C, right ?

Yes.

> you are probably better of looking at the original CPP code here :
> 
> http://oss.software.ibm.com/cvs/icu/icu/source/i18n/

Why?

> look form smpdftm.cpp and decimfmt.cpp

Thanks :)

Regards,
-- 
Michael - < mike(@)php.net >

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---
--- Begin Message ---
I wrote:

> Hi L0t3k, you wrote:

>>you are probably better of looking at the original CPP code here :
>>
>>http://oss.software.ibm.com/cvs/icu/icu/source/i18n/
> 
> 
> Why?

Ok, got it.  It is more obviously what's happening in the cpp file.
Implementing this in PHP will be miserably slow, though :-(

Regards,
-- 
Michael - < mike(@)php.net >

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---
--- Begin Message ---
"Michael Wallner" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]

>>Ok, got it.  It is more obviously what's happening in the cpp file.
>>Implementing this in PHP will be miserably slow, though :-(

exactly the point of the extension ....

l0t3k

--- End Message ---
--- Begin Message ---

On 2004/05/23, at 2:32, Bjai wrote:

To summarize I think it is required to add a null character to end each
UTF-7 IMAP encoded character:

result = iconv(cd, (char **) NULL, &in_left, (char **) &out_p, &out_left);

I have made several attempts to add the above line into the php_iconv_string
function, but it didn't work (compiling is ok).

I think the following line in iconv.c is exactly what should be done there.

http://cvs.php.net/co.php/php-src/ext/iconv/iconv.c?r=1.65.2.11#418

I'll try out the patch if I have enough time.

Note that mbstring extension supports UTF-7 IMAP encoding by default.

Regards,
Moriyoshi

--- End Message ---

Reply via email to