No wprintf ???

support for the powerpc toolchain
Post Reply
waterloper
Posts: 1
Joined: Sun Jan 18, 2009 3:48 pm

No wprintf ???

Post by waterloper » Sun Jan 18, 2009 3:54 pm

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.

WinterMute
Site Admin
Posts: 1986
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: No wprintf ???

Post by WinterMute » Sat Jan 24, 2009 11:08 am

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.
Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests