From ee55fe68ecff8708e600b7cacc8e40f4e36c1e52 Mon Sep 17 00:00:00 2001 From: akr Date: Fri, 5 Sep 2008 20:37:36 +0000 Subject: * transcode.c (output_hex_charref): upcase hexadecimal digits. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- transcode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'transcode.c') diff --git a/transcode.c b/transcode.c index 5318c564e..6496c75c7 100644 --- a/transcode.c +++ b/transcode.c @@ -1303,7 +1303,7 @@ output_hex_charref(rb_econv_t *ec) u += p[1] << 16; u += p[2] << 8; u += p[3]; - snprintf(charef_buf, sizeof(charef_buf), "&#x%x;", u); + snprintf(charef_buf, sizeof(charef_buf), "&#x%X;", u); ret = rb_econv_insert_output(ec, (unsigned char *)charef_buf, strlen(charef_buf), "US-ASCII"); if (ret == -1) -- cgit