Page 1 of 1

No wprintf ???

Posted: Sun Jan 18, 2009 3:54 pm
by waterloper
I am not looking for workarounds, this is mainly a question on why a function is missing.

I am slowly getting to the point where I can finish up my first game.
One of my todo's was adding font support (instead of console out).

I added FreeTypeGX for font support (http://wiibrew.org/wiki/FreeTypeGX)
Since using it seemed to be really simple.

But I am using formatted strings (sprintf)
And the FreeTypeGX is using wchar's.

The problem I found is that wprintf is defined in <wchar.h>
Is this an oversight, or am I missing anther include?

I need to get numbers in the texts.

Thnx in advance for your replies.

I am not looking for workarounds, this is mainly a question on why the function is missing.

Re: No wprintf ???

Posted: Sat Jan 24, 2009 11:08 am
by WinterMute
Newlib ( the c runtime library we use ) doesn't support the wide character functions.

Using wchar tends to be rather problematic though, devkitPPC has been built to use UTF8 internally so it's probably better to use that for localisation.