projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59b481d
)
fix iconv conversion to legacy 8bit codepages
author
Rich Felker
<dalias@aerifal.cx>
Wed, 26 Jun 2013 18:27:45 +0000
(14:27 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Wed, 26 Jun 2013 18:27:45 +0000
(14:27 -0400)
this seems to have been a simple copy-and-paste error from the code
for converting from legacy codepages.
src/locale/iconv.c
patch
|
blob
|
history
diff --git
a/src/locale/iconv.c
b/src/locale/iconv.c
index 7b341fe9fcb99c0c30c63179d1fb36ebafce8dcf..a2332ce007a45a7f70b971f8a81c4bff0c95180c 100644
(file)
--- a/
src/locale/iconv.c
+++ b/
src/locale/iconv.c
@@
-316,8
+316,8
@@
size_t iconv(iconv_t cd0, char **restrict in, size_t *restrict inb, char **restr
}
d = c;
for (c=0; c<128-totype; c++) {
- if (d == legacy_chars[ map[c*5/4]>>2*c%8 |
- map[c*5/4+1]<<8-2*c%8 & 1023 ]) {
+ if (d == legacy_chars[
to
map[c*5/4]>>2*c%8 |
+
to
map[c*5/4+1]<<8-2*c%8 & 1023 ]) {
c += 128;
goto revout;
}