[evolution-data-server] Camel: Use the same charset in all RFC2047-encoded words



commit 6f49a8b9e7fe3d0399153d09c8051b2aa02871a7
Author: Milan Crha <mcrha redhat com>
Date:   Thu Nov 25 16:58:30 2021 +0100

    Camel: Use the same charset in all RFC2047-encoded words
    
    When a string is encoded with RFC2047, use the same charset
    for each of the words, with a fallback to UTF-8, if more charsets
    would be used.

 src/camel/tests/message/test2.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/camel/tests/message/test2.c b/src/camel/tests/message/test2.c
index d9a6b097a..6b5e842ba 100644
--- a/src/camel/tests/message/test2.c
+++ b/src/camel/tests/message/test2.c
@@ -42,7 +42,10 @@ test_header_encode_phrase (void)
                { "BéB Cí AšA", "=?UTF-8?Q?B=C3=A9B_C=C3=AD_A=C5=A1A?=" },
                { "x AšA BéB Cí", "x =?UTF-8?Q?A=C5=A1A_B=C3=A9B_C=C3=AD?=" },
                { "BéB AšA Cí y", "=?UTF-8?Q?B=C3=A9B_A=C5=A1A_C=C3=AD?= y" },
-               { "x BéB Cí AšA y", "x =?UTF-8?Q?B=C3=A9B_C=C3=AD_A=C5=A1A?= y" }
+               { "x BéB Cí AšA y", "x =?UTF-8?Q?B=C3=A9B_C=C3=AD_A=C5=A1A?= y" },
+               { "🐈", "=?UTF-8?Q?=F0=9F=90=88?=" },
+               { "🐈 BéB", "=?UTF-8?Q?=F0=9F=90=88_B=C3=A9B?=" },
+               { "BéB 🐈", "=?UTF-8?Q?B=C3=A9B_=F0=9F=90=88?=" }
        };
        guint ii;
 
@@ -76,7 +79,10 @@ test_header_encode_string (void)
                { "BéB Cí AšA", "=?UTF-8?Q?B=C3=A9B?= =?UTF-8?Q?_C=C3=AD?= =?UTF-8?Q?_A=C5=A1A?=" },
                { "x AšA BéB Cí", "x =?UTF-8?Q?A=C5=A1A?= =?UTF-8?Q?_B=C3=A9B?= =?UTF-8?Q?_C=C3=AD?=" },
                { "BéB AšA Cí y", "=?UTF-8?Q?B=C3=A9B?= =?UTF-8?Q?_A=C5=A1A?= =?UTF-8?Q?_C=C3=AD?= y" },
-               { "x BéB Cí AšA y", "x =?UTF-8?Q?B=C3=A9B?= =?UTF-8?Q?_C=C3=AD?= =?UTF-8?Q?_A=C5=A1A?= y" }
+               { "x BéB Cí AšA y", "x =?UTF-8?Q?B=C3=A9B?= =?UTF-8?Q?_C=C3=AD?= =?UTF-8?Q?_A=C5=A1A?= y" },
+               { "🐈", "=?UTF-8?Q?=F0=9F=90=88?=" },
+               { "🐈 BéB", "=?UTF-8?Q?=F0=9F=90=88?= =?UTF-8?Q?_B=C3=A9B?=" },
+               { "BéB 🐈", "=?UTF-8?Q?B=C3=A9B?= =?UTF-8?Q?_=F0=9F=90=88?=" }
        };
        guint ii;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]