Solved - Re: Help with cross-platform wchar_t to utf8 conversion

David Bruce davidstuartbruce at gmail.com
Tue Feb 3 06:11:19 PST 2009


Hi,


> It seems like having to know this stuff a priori would partly defeat the
> purpose of having iconv? According to the iconv_open man page, you can
> pass "wchar_t" as tocode or fromcode and it will be interpreted as
> defined by the machine, OS and current locale.
>
> - Josh

Wow, that was easy! I should have been able to figure that one out.
This will probably eliminate the ugly #ifdef WIN32 as well...

Anyway, expect a portfile for tuxtype as soon as I get the fixed
upstream tarball posted.

Thanks,

David Bruce


More information about the macports-dev mailing list