Author: ivan
Date: Sun May 17 13:37:55 2026
New Revision: 1934298
Log:
Add tests for svn_utf_cstring_from_utf8_ex2() and svn_utf_cstring_to_utf8_ex2()
for converting to UTF-8.
* subversion/tests/libsvn_subr/utf-test.c
(test_utf_cstring_to_utf8_ex2): Add test case for converting from UTF-8 to
UTF-8.
(test_utf_cstring_from_utf8_ex2): Add test case for converting to UTF-8 from
UTF-8.
Modified:
subversion/trunk/subversion/tests/libsvn_subr/utf-test.c
Modified: subversion/trunk/subversion/tests/libsvn_subr/utf-test.c
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_subr/utf-test.c Sun May 17 12:20:55 2026 (r1934297)
+++ subversion/trunk/subversion/tests/libsvn_subr/utf-test.c Sun May 17 13:37:55 2026 (r1934298)
@@ -228,7 +228,8 @@ test_utf_cstring_to_utf8_ex2(apr_pool_t
const char *from_page;
} tests[] = {
{"ascii text\n", "ascii text\n", "unexistent-page"},
- {"Edelwei\xdf", "Edelwei\xc3\x9f", "ISO-8859-1"}
+ {"Edelwei\xdf", "Edelwei\xc3\x9f", "ISO-8859-1"},
+ {"abc\xF0\x9F\x98\x80", "abc\xF0\x9F\x98\x80", "UTF-8"}
};
for (i = 0; i < sizeof(tests) / sizeof(tests[0]); i++)
@@ -268,7 +269,8 @@ test_utf_cstring_from_utf8_ex2(apr_pool_
const char *to_page;
} tests[] = {
{"ascii text\n", "ascii text\n", "unexistent-page"},
- {"Edelwei\xc3\x9f", "Edelwei\xdf", "ISO-8859-1"}
+ {"Edelwei\xc3\x9f", "Edelwei\xdf", "ISO-8859-1"},
+ {"abc\xF0\x9F\x98\x80", "abc\xF0\x9F\x98\x80", "UTF-8"}
};
for (i = 0; i < sizeof(tests) / sizeof(tests[0]); i++)
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.