1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

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
parent 00445652db
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);