mirror of
https://github.com/depp/syncfiles.git
synced 2024-11-22 19:30:49 +00:00
Fix UTF-8 to Macintosh charset conversion
GitOrigin-RevId: f0d7fbd465cb5955be3bbde135801e1fd9701e33
This commit is contained in:
parent
1315f49c1e
commit
d0cbe697d9
@ -61,7 +61,7 @@ int mac_from_unix(unsigned char **outptr, unsigned char *outend,
|
|||||||
curvalue = 0;
|
curvalue = 0;
|
||||||
}
|
}
|
||||||
do {
|
do {
|
||||||
entry = table[*ip++];
|
entry = table[state | *ip++];
|
||||||
state = entry & 0xff00;
|
state = entry & 0xff00;
|
||||||
value = entry & 0xff;
|
value = entry & 0xff;
|
||||||
if (value != 0) {
|
if (value != 0) {
|
||||||
@ -77,6 +77,7 @@ int mac_from_unix(unsigned char **outptr, unsigned char *outend,
|
|||||||
}
|
}
|
||||||
ip = curpos;
|
ip = curpos;
|
||||||
*op++ = curvalue;
|
*op++ = curvalue;
|
||||||
|
last = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*outptr = op;
|
*outptr = op;
|
||||||
|
Loading…
Reference in New Issue
Block a user