Help with cross-platform wchar_t to utf8 conversion

2009-02-02 Thread David Bruce
Hi, I'm the upstream maintainer for Tux Math and Tux Typing. I just contributed a current portfile for tuxmath, and would like to add tuxtype as well. The tuxtype port is almost ready to go, but a significan part of the game doesn't work because the existing code to convert a wchar_t string to u

Re: Help with cross-platform wchar_t to utf8 conversion

2009-02-02 Thread Joshua Root
David Bruce wrote: > Hi, > > I'm the upstream maintainer for Tux Math and Tux Typing. I just > contributed a current portfile for tuxmath, and would like to add > tuxtype as well. The tuxtype port is almost ready to go, but a > significan part of the game doesn't work because the existing code t

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

2009-02-03 Thread David Bruce
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 e