aboutsummaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-11-26 23:22:57 +0100
committerAleksander Morgado <aleksander@aleksander.es>2021-02-23 11:35:11 +0000
commitbc449cbe87ccebccbe35f926e88a2dd110832ddf (patch)
treed307b1d18c36fb620a28fa88174ba127a369a18f /src/tests
parent5ce97abd73da12b64393be798f2c294d29be2705 (diff)
charsets: make translit optional in utf8_to_unpacked_gsm()
If the conversion is not fully compatible, the user of the method needs to request transliteration enabled explicitly in order to avoid returning errors in this method.
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/test-charsets.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tests/test-charsets.c b/src/tests/test-charsets.c
index b18c11b1..c2e08591 100644
--- a/src/tests/test-charsets.c
+++ b/src/tests/test-charsets.c
@@ -33,8 +33,9 @@ common_test_gsm7 (const gchar *in_utf8)
g_autoptr(GError) error = NULL;
/* Convert to GSM */
- unpacked_gsm = mm_charset_utf8_to_unpacked_gsm (in_utf8, &unpacked_gsm_len);
+ unpacked_gsm = mm_charset_utf8_to_unpacked_gsm (in_utf8, FALSE, &unpacked_gsm_len, &error);
g_assert_nonnull (unpacked_gsm);
+ g_assert_no_error (error);
g_assert_cmpuint (unpacked_gsm_len, >, 0);
/* Pack */