From 6c80ae66b2915ed79004c131002dbfe69cce326b Mon Sep 17 00:00:00 2001 From: root Date: Mon, 20 Dec 2004 18:07:19 +0000 Subject: [PATCH] *** empty log message *** --- src/misc.C | 2 +- src/rxvt.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/misc.C b/src/misc.C index 683bcb77..e229074a 100644 --- a/src/misc.C +++ b/src/misc.C @@ -73,7 +73,7 @@ rxvt_wcstoutf8 (const wchar_t *str, int len) while (len--) { - unicode_t w = *str++; + unicode_t w = *str++ & UNICODE_MASK; if (w < 0x000080) *p++ = w; diff --git a/src/rxvt.h b/src/rxvt.h index f121bf46..96f6bb7f 100644 --- a/src/rxvt.h +++ b/src/rxvt.h @@ -956,6 +956,8 @@ struct mbstate { mbstate () { reset (); } }; +#define UNICODE_MASK 0x1fffffUL + #if UNICODE3 # define COMPOSE_LO 0x40000000UL # define COMPOSE_HI 0x400fffffUL -- 2.34.1