]> Kevux Git Server - fll/commitdiff
Cleanup: The byte_dump program should use uppercase when printing unicode codes.
authorKevin Day <thekevinday@gmail.com>
Thu, 27 May 2021 00:33:08 +0000 (19:33 -0500)
committerKevin Day <thekevinday@gmail.com>
Thu, 27 May 2021 00:33:08 +0000 (19:33 -0500)
level_3/byte_dump/c/private-byte_dump.c

index 889eed3224bf37ed8faf6c4fd68df2f75b0d97b3..ee7e1162de14bad163822d2c7d5d7618f7cf39f0 100644 (file)
@@ -390,10 +390,10 @@ extern "C" {
           }
 
           if (width_utf < 4) {
-            fprintf(main.output.stream, " U+%04x  ", (uint32_t) unicode);
+            fprintf(main.output.stream, " U+%04X  ", (uint32_t) unicode);
           }
           else {
-            fprintf(main.output.stream, " U+%06x", (uint32_t) unicode);
+            fprintf(main.output.stream, " U+%06X", (uint32_t) unicode);
           }
         }
         else {