Skip to content

Commit

Permalink
locale.c: Improve collation debugging output
Browse files Browse the repository at this point in the history
This adds a special case for when the buffer is empty
  • Loading branch information
khwilliamson committed May 6, 2023
1 parent 5c1f838 commit 99da3ef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion locale.c
Expand Up @@ -8233,7 +8233,10 @@ S_print_collxfrm_input_and_return(pTHX_
get_displayable_string(s, e, is_utf8),
((xbuf == NULL)
? "(null)"
: _byte_dump_string((U8 *) xbuf + COLLXFRM_HDR_LEN, xlen, 0)),
: ((xlen == 0)
? "(empty)"
: _byte_dump_string((U8 *) xbuf + COLLXFRM_HDR_LEN,
xlen, 0))),
xlen);
}

Expand Down

0 comments on commit 99da3ef

Please sign in to comment.