unleashed-userland README
[unleashed-userland.git] / components / icu / patches / source_common_ucnv_u7.c.patch
blobfeefdf6b27dd9f17672f0dad874f0444c606e697
1 --- icu/source/common/ucnv_u7.c.orig 2009-04-30 18:24:05.797713156 +0800
2 +++ icu/source/common/ucnv_u7.c 2009-04-30 18:26:13.500926547 +0800
3 @@ -742,7 +742,13 @@
4 "UTF-7",
5 0, /* TODO CCSID for UTF-7 */
6 UCNV_IBM, UCNV_UTF7,
7 + /*
8 + * Sun modification:
9 + * Since UTF-7 (and Modified Base64) encoding requires max 5 octets,
10 + * we change the maxBytesPerChar for the UTF-7 to 5.
11 1, 4,
12 + */
13 + 1, 5,
14 { 0x3f, 0, 0, 0 }, 1, /* the subchar is not used */
15 FALSE, FALSE,
17 @@ -1442,7 +1448,13 @@
18 "IMAP-mailbox-name",
19 0, /* TODO CCSID for IMAP-mailbox-name */
20 UCNV_IBM, UCNV_IMAP_MAILBOX,
21 + /*
22 + * Sun modification:
23 + * Since IMAP-mailbox-name encoding requires max 8 octets,
24 + * we change the maxBytesPerChar for the encoding to 8.
25 1, 4,
26 + */
27 + 1, 8,
28 { 0x3f, 0, 0, 0 }, 1, /* the subchar is not used */
29 FALSE, FALSE,