summaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2021-07-30 15:28:23 -0600
committerKarl Williamson <khw@cpan.org>2021-08-07 05:14:44 -0600
commit7746124c78426a0d91e73706a02e5a891efde7d5 (patch)
treecf3bae13bf8353b4a423b35e33f1d15ccb6ce6aa /utf8.c
parent86fb75ad16dc25aa240885d6da2eb32c9a3685a1 (diff)
downloadperl-7746124c78426a0d91e73706a02e5a891efde7d5.tar.gz
utf8.c: Change internal macro name
The sequences here aren't UTF-8, but UTF, since they are I8 in UTF-EBCDIC terms
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/utf8.c b/utf8.c
index 7063afd5f1..f4edc05025 100644
--- a/utf8.c
+++ b/utf8.c
@@ -804,18 +804,18 @@ S_isFF_overlong(const U8 * const s, const STRLEN len)
#ifdef EBCDIC /* Actually is I8 */
# if defined(UV_IS_QUAD) /* These assume IV_MAX is 2**63-1, UV_MAX 2**64-1 */
-# define HIGHEST_REPRESENTABLE_UTF8 "\xFF\xA7"
+# define HIGHEST_REPRESENTABLE_UTF "\xFF\xA7"
/* UV_MAX "\xFF\xAF" */
# else /* These assume IV_MAX is 2**31-1, UV_MAX 2**32-1 */
-# define HIGHEST_REPRESENTABLE_UTF8 "\xFF\xA0\xA0\xA0\xA0\xA0\xA0\xA1"
+# define HIGHEST_REPRESENTABLE_UTF "\xFF\xA0\xA0\xA0\xA0\xA0\xA0\xA1"
/* UV_MAX "\xFF\xA0\xA0\xA0\xA0\xA0\xA0\xA3" */
# endif
#else
# if defined(UV_IS_QUAD)
-# define HIGHEST_REPRESENTABLE_UTF8 "\xFF\x80\x87"
+# define HIGHEST_REPRESENTABLE_UTF "\xFF\x80\x87"
/* UV_MAX "\xFF\x80" */
# else
-# define HIGHEST_REPRESENTABLE_UTF8 "\xFD"
+# define HIGHEST_REPRESENTABLE_UTF "\xFD"
/* UV_MAX "\xFE\x83" */
# endif
#endif
@@ -860,7 +860,7 @@ S_does_utf8_overflow(const U8 * const s,
{
const STRLEN len = e - s;
const U8 *x;
- const U8 * y = (const U8 *) HIGHEST_REPRESENTABLE_UTF8;
+ const U8 * y = (const U8 *) HIGHEST_REPRESENTABLE_UTF;
for (x = s; x < e; x++, y++) {
@@ -887,7 +887,7 @@ S_does_utf8_overflow(const U8 * const s,
/* Got to the end and all bytes are the same. If the input is a whole
* character, it doesn't overflow. And if it is a partial character,
* there's not enough information to tell */
- if (len < STRLENs(HIGHEST_REPRESENTABLE_UTF8)) {
+ if (len < STRLENs(HIGHEST_REPRESENTABLE_UTF)) {
return -1;
}