From 365ed9f639be420aedf11500e6220a8ed0ebf5e8 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 22 Nov 2017 14:41:10 +0100 Subject: lib/mbsalign: add mbs_invalid_encode() Like mbs_safe_encode(), but it does not care about control chars. Signed-off-by: Karel Zak --- include/mbsalign.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/mbsalign.h b/include/mbsalign.h index 6bdb50d3f..0c28e6f69 100644 --- a/include/mbsalign.h +++ b/include/mbsalign.h @@ -57,4 +57,7 @@ extern char *mbs_safe_encode(const char *s, size_t *width); extern char *mbs_safe_encode_to_buffer(const char *s, size_t *width, char *buf, const char *safechars); extern size_t mbs_safe_encode_size(size_t bytes); +extern char *mbs_invalid_encode(const char *s, size_t *width); +extern char *mbs_invalid_encode_to_buffer(const char *s, size_t *width, char *buf); + #endif /* UTIL_LINUX_MBSALIGN_H */ -- cgit v1.2.3-55-g7522