Subversion Repositories HelenOS

Rev

Rev 4183 | Rev 4199 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4183 Rev 4185
Line 157... Line 157...
157
static int printf_putwchar(const wchar_t ch, printf_spec_t *ps)
157
static int printf_putwchar(const wchar_t ch, printf_spec_t *ps)
158
{
158
{
159
    if (!unicode_check(ch))
159
    if (!unicode_check(ch))
160
        return ps->write_utf8((void *) &invalch, 1, ps->data);
160
        return ps->write_utf8((void *) &invalch, 1, ps->data);
161
   
161
   
162
    return ps->write_utf32(&ch, 1, ps->data);
162
    return ps->write_utf32(&ch, sizeof(wchar_t), ps->data);
163
}
163
}
164
 
164
 
165
/** Print one formatted ASCII character.
165
/** Print one formatted ASCII character.
166
 *
166
 *
167
 * @param ch    Character to print.
167
 * @param ch    Character to print.