From d528804abb10f4a7df33f93d35cd70c46de58e60 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Tue, 8 Dec 2015 22:30:22 -0700 Subject: [PATCH] utf8.c: Fix broken EBCDIC compilation Commit ba6ed43c6aca7f1ff5a1b82062faa3e1c33c0582 left out a '}' which is skipped except in EBCDIC builds. (I meant to make sure things would compile (by reversing the sense of the #if's) on EBCDIC, but forgot at the time it should have been done.) --- utf8.c | 1 + 1 file changed, 1 insertion(+) diff --git a/utf8.c b/utf8.c index e3b3f15..1b132b4 100644 --- a/utf8.c +++ b/utf8.c @@ -230,6 +230,7 @@ Perl_uvoffuni_to_utf8_flags(pTHX_ U8 *d, UV uv, UV flags) handled just above */ if (UNLIKELY(UNICODE_IS_32_CONTIGUOUS_NONCHARS(uv))) { HANDLE_UNICODE_NONCHAR(uv, flags); + } else if (UNLIKELY(UNICODE_IS_SURROGATE(uv))) { HANDLE_UNICODE_SURROGATE(uv, flags); } -- 1.8.3.1