MDEV-8844 Unreadable control characters printed as is in warnings

This commit is contained in:
Alexander Barkov 2019-12-06 18:51:05 +04:00
commit 3c6065a270
28 changed files with 517 additions and 75 deletions

View file

@ -524,6 +524,15 @@ public:
bool copy(const char *s, size_t arg_length); // Allocate new string
bool copy_or_move(const char *s,size_t arg_length);
/**
Convert a string to a printable format.
All non-convertable and control characters are replaced to 5-character
sequences '\hhhh'.
*/
bool copy_printable_hhhh(CHARSET_INFO *to_cs,
CHARSET_INFO *from_cs,
const char *from, uint32 from_length);
bool append_ulonglong(ulonglong val);
bool append_longlong(longlong val);