Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 10d73d8 in mainline


Ignore:
Timestamp:
2009-03-24T15:27:08Z (12 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
6a75902c
Parents:
08b5601
Message:

fix wchar_t printing

Location:
kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/printf/printf_core.c

    r08b5601 r10d73d8  
    160160                return ps->write_utf8((void *) &invalch, 1, ps->data);
    161161       
    162         return ps->write_utf32(&ch, 1, ps->data);
     162        return ps->write_utf32(&ch, sizeof(wchar_t), ps->data);
    163163}
    164164
  • kernel/test/print/print4.c

    r08b5601 r10d73d8  
    5050                }
    5151               
    52                 printf("\nExtended ASCII characters (128 - 255) using printf(\"%%c\") and printf(\"%%lc\"):\n");
     52                printf("\nExtended ASCII characters (128 - 255) using printf(\"%%lc\"):\n");
    5353               
    5454                for (hextet = 8; hextet < 16; hextet++) {
     
    5656                       
    5757                        uint8_t index;
    58                         for (index = 0; index < 16; index++)
    59                                 printf("%c", (char) ((hextet << 4) + index));
    60                        
    61                         printf("  ");
    6258                        for (index = 0; index < 16; index++)
    6359                                printf("%lc", (wchar_t) ((hextet << 4) + index));
Note: See TracChangeset for help on using the changeset viewer.