Skip to content
Snippets Groups Projects
Forked from redox-os / relibc
Source project has a limited visibility.
  • Alex Lyon's avatar
    0cabecd5
    stdio, string, platform: fix a bug in printf() involving chars · 0cabecd5
    Alex Lyon authored
    Because we were previously converting the bytes in the format
    string into Rust's char type and then printing that using the
    format machinery, byte values that were not valid single-byte
    UTF-8 characters failed to print correctly.  I found this while
    trying to implement qsort() because the output of my test program
    was mysteriously incorrect despite it working when I used glibc.
    stdio, string, platform: fix a bug in printf() involving chars
    Alex Lyon authored
    Because we were previously converting the bytes in the format
    string into Rust's char type and then printing that using the
    format machinery, byte values that were not valid single-byte
    UTF-8 characters failed to print correctly.  I found this while
    trying to implement qsort() because the output of my test program
    was mysteriously incorrect despite it working when I used glibc.