[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tyndur-devel] [PATCH] libc: Fix fuer mblen mit 3- und 4-Byte-Zeichen



Kevin Wolf schrieb:
! libc: Tippfehler hat 3 und 4 Byte lange UTF-8-Zeichen kaputtgemacht

Signed-off-by: Kevin Wolf <kevin@xxxxxxxxxx>
---
 src/lib/string/multibyte.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/lib/string/multibyte.c b/src/lib/string/multibyte.c
index ef00f7f..cdc7d75 100644
--- a/src/lib/string/multibyte.c
+++ b/src/lib/string/multibyte.c
@@ -52,7 +52,7 @@
 #define VAL_1 0
 #define VAL_2 (BIT(7) | BIT(6))
 #define VAL_3 (BIT(7) | BIT(6) | BIT(5))
-#define VAL_4 (BIT(7) | BIT(6) | BIT(5) | BIT(6))
+#define VAL_4 (BIT(7) | BIT(6) | BIT(5) | BIT(4))
#define get_lower_bits(v, x) (v & (BIT(x) - 1))

Acked-by: Max Reitz <max@xxxxxxxxxx>