*** empty log message ***
authorroot <root>
Mon, 20 Dec 2004 18:07:19 +0000 (18:07 +0000)
committerroot <root>
Mon, 20 Dec 2004 18:07:19 +0000 (18:07 +0000)
src/misc.C
src/rxvt.h

index 683bcb7..e229074 100644 (file)
@@ -73,7 +73,7 @@ rxvt_wcstoutf8 (const wchar_t *str, int len)
 
   while (len--)
     {
 
   while (len--)
     {
-      unicode_t w = *str++;
+      unicode_t w = *str++ & UNICODE_MASK;
 
       if      (w < 0x000080)
         *p++ = w;
 
       if      (w < 0x000080)
         *p++ = w;
index f121bf4..96f6bb7 100644 (file)
@@ -956,6 +956,8 @@ struct mbstate {
   mbstate () { reset (); }
 };
 
   mbstate () { reset (); }
 };
 
+#define UNICODE_MASK 0x1fffffUL
+
 #if UNICODE3
 # define COMPOSE_LO 0x40000000UL
 # define COMPOSE_HI 0x400fffffUL
 #if UNICODE3
 # define COMPOSE_LO 0x40000000UL
 # define COMPOSE_HI 0x400fffffUL