entropy: Use Unicode escape sequence in string
authorplanet36 <planet36@users.noreply.github.com>
Fri, 28 Oct 2022 15:49:05 +0000 (10:49 -0500)
committerdrkhsh <me@drkhsh.at>
Mon, 19 Dec 2022 01:44:21 +0000 (02:44 +0100)
Signed-off-by: drkhsh <me@drkhsh.at>
components/entropy.c

index 66b2e5a95e39d751151d12d94ff62307c808acf9..65010b0274fc69b6ae02649f36d20db5e7a665c6 100644 (file)
@@ -22,7 +22,8 @@
        const char *
        entropy(const char *unused)
        {
+               // https://www.unicode.org/charts/PDF/U2200.pdf
                /* Unicode Character 'INFINITY' (U+221E) */
-               return "\xe2\x88\x9e";
+               return "\u221E";
        }
 #endif