List Info

Thread: Re: New changes due to storing messages in UTF8 -review for developers




Re: New changes due to storing messages in UTF8 -review for developers
user name
2007-06-21 05:01:31

George Hazan wrote:
>    Hello, Piotr!
>    Wed, 20 Jun 2007 11:38:32 +0200 you wrote:
> 
> PP> The UTF-8 API is not consistent and not very
clear IMO.
> PP> There should be additional utf8_decodeW function
instead of confusing
> PP> wchar_t** argument in the existing utf8_decode
and and utf8_decodecp
> PP> functions.
> 
> utf8_decode does the internal conversion into UCS2
anyway, and places the 
> ANSI result into the same buffer, specified in the
first parameter. That's 
> why it was written this way: if someone is interested
in getting the Unicode 
> buffer, he should provide a pointer to a pointer,
otherwise the internal 
> buffer will be freed.
> 

OK, would you mind if I added utf8_decodeW that will return
the pointer 
to UCS2 string as the result?



------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
Miranda-Develop mailing list
Miranda-Developlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/miranda
-develop

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )