[PATCH] Support of UCS2 for SMS/USSD
andreas at eversberg.eu
Wed Feb 6 11:09:27 UTC 2013
Pavel Baturko wrote:
> Attached 3 patches for decoding UCS2 MT-SMS and incoming USSD.
> Main idea: convert UCS2 text to UTF-8, check if terminal supports
> UTF-8 and if yes - print, otherwise - print in hex, and notify VTY to
> check mobile log (since we can't send UTF text to VTY, if someone
> knows how to do it - please tell me).
the patches for osmocombb look good to me, except that the UTF encoded
text is not only displayed on VTY, but also not written to sms.txt file.
look at gsm340_rx_sms_deliver() where linefeeds from sms-text are
removed for the vty output. you could also remove (or replace by '?')
non-ascii characters there. then it can be displayed on VTY too.
you can apply the osmocombb patches, after the libosmocore patch is
applied to master of libosmocore. for applying the libosmocore patch, i
cannot give green light, because holger was recently working on sms
code, so i would ask him.
More information about the baseband-devel