[PATCH] Decoding UCS2 USSD

Peter Stuge peter at stuge.se
Wed Sep 19 02:12:57 UTC 2012

Holger Hans Peter Freyther wrote:
> I think a library should not call setlocale as it will impact the
> entire application. I think our only other realistic option is to
> use iconv (and stub it out for osmocomBB). Do you think you could
> try to create such a patch?

I'd suggest http://www.lemoda.net/c/ucs2-to-utf8/ and simply output

Maybe output an error if setlocal(LC_CTYPE,NULL) does not report that
a UTF-8 locale is being used.


More information about the baseband-devel mailing list