Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Encode 2.95 broke this module, which is testing for a particular warning
message.  It was not my intent to change any part of the API with the
commits that comprise 2.95, and it turns out that the message is
different only in one or two perl versions where an interaction with a
deprecation caused the new message to be displayed.

The commit here just keeps the old code being used into the 5.27 series.
It probably could work starting in 5.27.2, but its easier to use a
marker of the existence of a newer function, and since the affected
versions are all development releases, I went with the marker.
  • Loading branch information
khwilliamson committed Feb 14, 2018
1 parent f6ea05b commit cfaedb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Encode.xs
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ strict_utf8(pTHX_ SV* sv)
}

/* Modern perls have the capability to do this more efficiently and portably */
#ifdef is_utf8_string_loc_flags
#ifdef utf8n_to_uvchr_msgs
# define CAN_USE_BASE_PERL
#endif

Expand Down

0 comments on commit cfaedb2

Please sign in to comment.