From 3bc6f9e3369c23bd249027316883707318b9d900 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 25 Jan 2026 19:06:59 +0100 Subject: latin: do not covert LF and SP to text MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libcharconv_latin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libcharconv_latin.c') diff --git a/libcharconv_latin.c b/libcharconv_latin.c index 0b40d77..360b3dd 100644 --- a/libcharconv_latin.c +++ b/libcharconv_latin.c @@ -744,7 +744,7 @@ libcharconv_latin(const char *s, size_t slen, size_t *n, uint_least32_t *cp, siz case UINT32_C(0x07): c1 = 'B'; c2 = 'E'; c3 = 'L'; goto conv3; case UINT32_C(0x08): c1 = 'B'; c2 = 'S'; goto conv2; case UINT32_C(0x09): c1 = 'H'; c2 = 'T'; goto conv2; - case UINT32_C(0x0A): c1 = 'L'; c2 = 'F'; goto conv2; + /* case UINT32_C(0x0A): c1 = 'L'; c2 = 'F'; goto conv2; */ case UINT32_C(0x0B): c1 = 'V'; c2 = 'T'; goto conv2; case UINT32_C(0x0C): c1 = 'F'; c2 = 'F'; goto conv2; case UINT32_C(0x0D): c1 = 'C'; c2 = 'R'; goto conv2; @@ -831,7 +831,7 @@ libcharconv_latin(const char *s, size_t slen, size_t *n, uint_least32_t *cp, siz case UINT32_C(0xE007F): c1 = 'C'; c2 = 'T'; c3 = 'A'; c4 = 'G'; goto conv4; /* control characters (whitespace) */ - case UINT32_C(0x20): c1 = 'S'; c2 = 'P'; goto conv2; + /* case UINT32_C(0x20): c1 = 'S'; c2 = 'P'; goto conv2; */ case UINT32_C(0x00A0): c1 = 'N'; c2 = 'B'; c3 = 'S'; c4 = 'P'; goto conv4; case UINT32_C(0x2000): c1 = 'N'; c2 = 'Q'; goto conv2; case UINT32_C(0x2001): c1 = 'M'; c2 = 'Q'; goto conv2; -- cgit v1.2.3-70-g09d2