aboutsummaryrefslogtreecommitdiff
path: root/src/mm-sms-part-cdma.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-08-20 12:18:05 +0200
committerAleksander Morgado <aleksander@aleksander.es>2020-08-20 18:15:37 +0200
commit599f545c0d905505516c6546ff77caced2aa14f1 (patch)
treea06b77c6dce87ec3aca97ea3c88037c6e7653d67 /src/mm-sms-part-cdma.c
parent81162df15dc9a409d0979ff8d472a026f31ed883 (diff)
sms-part-3gpp: allow sending UTF-16 as if it were UCS-2
Despite 3GPP TS 23.038 specifies that Unicode SMS messages are encoded in UCS-2, UTF-16 encoding is commonly used instead on many modern platforms to allow encoding code points that fall outside the Basic Multilingual Plane (BMP), such as Emoji. Update the logic to always use UTF-16 instead of UCS-2 when creating or parsing PDUs (even if we always report as sending or receiving UCS-2). For all purposes, UCS-2 is considered a subset of UTF-16 (assuming that code points out of the [U+0000,U+D7FF] and [U+E000,U+FFFF] ranges are not applicable in UCS-2). Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/250
Diffstat (limited to 'src/mm-sms-part-cdma.c')
0 files changed, 0 insertions, 0 deletions