diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-07-16 02:27:04 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-07-16 02:27:04 +0200 |
commit | f6106e6041895d05ab10fdc5383f12a3dba1a16d (patch) | |
tree | b1b7da6364879dff3e98a7660c4def242cb36b24 /libbb/unicode.c | |
parent | 53fd1bf22367266b9370a97339a4be3e776b63be (diff) | |
download | busybox-w32-f6106e6041895d05ab10fdc5383f12a3dba1a16d.tar.gz busybox-w32-f6106e6041895d05ab10fdc5383f12a3dba1a16d.tar.bz2 busybox-w32-f6106e6041895d05ab10fdc5383f12a3dba1a16d.zip |
comment fixes, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/unicode.c')
-rw-r--r-- | libbb/unicode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libbb/unicode.c b/libbb/unicode.c index b977437ef..773a0744e 100644 --- a/libbb/unicode.c +++ b/libbb/unicode.c | |||
@@ -2,7 +2,7 @@ | |||
2 | /* | 2 | /* |
3 | * Unicode support routines. | 3 | * Unicode support routines. |
4 | * | 4 | * |
5 | * Copyright (C) 2008 Denys Vlasenko | 5 | * Copyright (C) 2009 Denys Vlasenko |
6 | * | 6 | * |
7 | * Licensed under GPL version 2, see file LICENSE in this tarball for details. | 7 | * Licensed under GPL version 2, see file LICENSE in this tarball for details. |
8 | */ | 8 | */ |
@@ -84,6 +84,7 @@ static size_t wcrtomb_internal(char *s, wchar_t wc) | |||
84 | wc >>= 6; | 84 | wc >>= 6; |
85 | n++; | 85 | n++; |
86 | } | 86 | } |
87 | /* 80-7FF -> 110yyyxx 10xxxxxx */ | ||
87 | s[1] = (wc & 0x3f) | 0x80; | 88 | s[1] = (wc & 0x3f) | 0x80; |
88 | wc >>= 6; | 89 | wc >>= 6; |
89 | s[0] = wc | (uint8_t)(0x3f00 >> n); | 90 | s[0] = wc | (uint8_t)(0x3f00 >> n); |