]> 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 889eed3..ee7e116 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 {