Skip to content

Commit 4921e06

Browse files
committed
utf8n_to_uvchr_msgs: Remove an #ifdef
A previous commit removed this spot from having to deal with UTF-8 invariants that don't want to be translated to EBCDIC, leaving only cases that do, so we can move the code to deal with it to here, and remove the #ifdef. The macro call is a no-op on ASCII machines.
1 parent 88c1387 commit 4921e06

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

inline.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3043,9 +3043,6 @@ Perl_utf8n_to_uvchr_msgs(const U8 *s,
30433043
}
30443044

30453045
if (LIKELY(state == 0)) {
3046-
#ifdef EBCDIC
3047-
uv = UNI_TO_NATIVE(uv);
3048-
#endif
30493046
goto success;
30503047
}
30513048

@@ -3059,7 +3056,7 @@ Perl_utf8n_to_uvchr_msgs(const U8 *s,
30593056
*retlen = s - s0 + 1;
30603057
}
30613058

3062-
return uv;
3059+
return UNI_TO_NATIVE(uv);
30633060
}
30643061

30653062
PERL_STATIC_INLINE UV

0 commit comments

Comments
 (0)