projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53fd1bf
)
comment fixes, no code changes
author
Denys Vlasenko
<vda.linux@googlemail.com>
Thu, 16 Jul 2009 00:27:04 +0000
(
02:27
+0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Thu, 16 Jul 2009 00:27:04 +0000
(
02:27
+0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/unicode.c
patch
|
blob
|
history
diff --git
a/libbb/unicode.c
b/libbb/unicode.c
index b977437ef3f2a7748bc83679c4a70da14c52dbf2..773a0744e6c183b8230515f8c4129c60fb8ef8b6 100644
(file)
--- a/
libbb/unicode.c
+++ b/
libbb/unicode.c
@@
-2,7
+2,7
@@
/*
* Unicode support routines.
*
- * Copyright (C) 200
8
Denys Vlasenko
+ * Copyright (C) 200
9
Denys Vlasenko
*
* Licensed under GPL version 2, see file LICENSE in this tarball for details.
*/
@@
-84,6
+84,7
@@
static size_t wcrtomb_internal(char *s, wchar_t wc)
wc >>= 6;
n++;
}
+ /* 80-7FF -> 110yyyxx 10xxxxxx */
s[1] = (wc & 0x3f) | 0x80;
wc >>= 6;
s[0] = wc | (uint8_t)(0x3f00 >> n);