# HG changeset patch # User Mychaela Falconia # Date 1683364752 0 # Node ID 882d972661747dee04ad9c43c8bdaa8aed8824d3 # Parent 612c4d0df7681ac3283465aecc883be9118e2cb7 f-demime: fix \u and \U escape formats diff -r 612c4d0df768 -r 882d97266174 f-demime/ptext_in.c --- a/f-demime/ptext_in.c Sat May 06 09:02:12 2023 +0000 +++ b/f-demime/ptext_in.c Sat May 06 09:19:12 2023 +0000 @@ -153,9 +153,9 @@ char buf[9]; if (unicode >= 0x10000) - sprintf(buf, "\\U%06u", unicode); + sprintf(buf, "\\U%06X", unicode); else - sprintf(buf, "\\u%04u", unicode); + sprintf(buf, "\\u%04X", unicode); unit_output(buf); }