projects
/
dana
/
urxvt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a5b87fb
)
*** empty log message ***
author
root
<root>
Mon, 20 Dec 2004 18:07:19 +0000
(18:07 +0000)
committer
root
<root>
Mon, 20 Dec 2004 18:07:19 +0000
(18:07 +0000)
src/misc.C
patch
|
blob
|
history
src/rxvt.h
patch
|
blob
|
history
diff --git
a/src/misc.C
b/src/misc.C
index
683bcb7
..
e229074
100644
(file)
--- a/
src/misc.C
+++ b/
src/misc.C
@@
-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;
diff --git
a/src/rxvt.h
b/src/rxvt.h
index
f121bf4
..
96f6bb7
100644
(file)
--- a/
src/rxvt.h
+++ b/
src/rxvt.h
@@
-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