summaryrefslogtreecommitdiff
path: root/src/util.c
Commit message (Collapse)AuthorAgeFilesLines
* util: Remove last glib usesDenis Kenzior2018-12-271-2/+1
|
* util: Remove encode_hexDenis Kenzior2018-12-271-19/+0
|
* util: Remove decode_hexDenis Kenzior2018-12-271-26/+0
|
* util: Switch character conversions to ellDenis Kenzior2018-12-271-13/+5
| | | | | | | | Switch various conversions from GSM/UCS2 to UTF8 from glib based implementation over to ell. This also converts all related g_free calls to l_free calls (though in the end they are equivalent calls to free)
* util: Use l_utf8_to_ucs2be instead of g_convertDenis Kenzior2018-12-271-14/+10
|
* util: Use ell in convert_utf8_to_gsmDenis Kenzior2018-12-271-15/+11
|
* util: use ell in convert_ucs2_to_gsm_with_langDenis Kenzior2018-12-271-10/+5
|
* util: Convert pack7_bit / unpack_7bit to use l_mallocDenis Kenzior2018-12-271-4/+3
|
* util: Use bool instead of gbooleanDenis Kenzior2018-12-271-41/+41
|
* util: Use L_ARRAY_SIZE instead of TABLE_SIZEDenis Kenzior2018-12-271-44/+42
|
* util: adding 8 national sms alphabetsNandini Rebello2018-10-151-0/+1867
| | | | | Adding national language tables for hindi,kannada,malayalam, oriya,punjabi,tamil,telugu and urdu.
* sms: fix a missing entry in single shift tableNandini Rebello2018-10-111-0/+2
| | | | | Fix a missing char in the nation language set in single shift table for a special character. Character set again validated.
* util: add bengali and gujrati sms alphabetsNandini Rebello2018-10-011-2/+452
|
* util: Make sure to handle special empty stringsDenis Kenzior2012-08-161-0/+6
| | | | | | | | | | | | | | | | | Some SIMs contain an EFspn with the contents all set to 'filler' characters, e.g. 0xFF. We mistakenly do not handle these strings correctly. Aug 8 11:40:00 mx31tt01 daemon.info ofonod[622]: Aux: > AT+CRSM=176,28486,0,0,17\r Aug 8 11:40:00 mx31tt01 daemon.info ofonod[622]: Aux: < \r\n+CRSM: 144,0,FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF\r\n\r\nOK\r\n Aug 8 11:40:00 mx31tt01 daemon.debug ofonod[622]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 17 Aug 8 11:40:00 mx31tt01 daemon.debug ofonod[622]: src/simfs.c:sim_fs_op_read_block_cb() bufoff: 0, dataoff: 0, tocopy: 17 Aug 8 11:40:00 mx31tt01 daemon.err ofonod[622]: EFspn read successfully, but couldn't parse
* util: Style issuesDenis Kenzior2012-07-161-3/+2
|
* util: update comment from previous commitDenis Kenzior2012-07-161-6/+10
| | | | Cite the specification verbatim
* util: Fix GSM to UTF8 conversion mechanismGuillaume Zajac2012-07-161-3/+14
|
* core: Update copyright informationMarcel Holtmann2011-10-101-1/+1
|
* util: Fix convert_utf8_to_gsm_best_lang logicDenis Kenzior2011-02-031-2/+3
|
* util: Add best dialect picker APIAki Niemi2011-02-031-0/+64
|
* util: Use gboolean for returning success / failureDenis Kenzior2011-02-031-16/+19
|
* util: Refactor conversion table handlingAki Niemi2011-02-031-79/+126
|
* util: Fix style issue with long linesAki Niemi2011-02-021-48/+48
|
* util: explicitly compare pointers to NULLLucas De Marchi2010-11-291-11/+7
| | | | | | | | | | | | | | This patch was generated by the following semantic patch (http://coccinelle.lip6.fr/) // <smpl> @fix disable is_null,isnt_null1@ expression *E; @@ - !E + E == NULL // </smpl>
* util: coding style fixes - rule M6Jeevaka Badrappan2010-11-221-3/+3
|
* util: Remove extra tabJeevaka Badrappan2010-11-171-1/+1
|
* Fix multi-line comment style issuesJeevaka Badrappan2010-09-211-7/+14
|
* util: Clean up some coding style violationsDenis Kenzior2010-09-141-9/+9
|
* util: Return the number of bytes read, not charsDenis Kenzior2010-09-141-1/+1
| | | | | To be consistent with the documentation header and other functions of this type
* util: Add UCS2 to GSM 7bit converion functionJeevaka Badrappan2010-09-141-0/+108
|
* Fix common misspelling in source filesLucas De Marchi2010-09-141-1/+1
| | | | | | | | | | Fix common misspellings by using the list available at http://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines From the list cited above, the substitution script found the following misspelling: reponsible->responsible
* Fix wrong code point in Portuguese tableAki Niemi2010-09-091-1/+1
|
* util: Add a "sim string" encoding utility.Andrzej Zaborowski2010-06-091-0/+46
|
* Fix: Use g_try_malloc instead of g_malloc in utilDenis Kenzior2010-03-161-3/+3
| | | | | In these cases we were checking for NULL return, but the function used should have been g_try_malloc instead.
* Style: Trailing whitespace & extra linesDenis Kenzior2010-01-121-2/+2
|
* Update copyright informationMarcel Holtmann2010-01-011-1/+1
|
* Use error label instead of err or err_outMarcel Holtmann2009-12-241-6/+6
|
* Style: Fix a few more occurences of if/elseDenis Kenzior2009-12-171-1/+2
| | | | See Linux coding style document for details
* Refactor SMS language dialect encoding / decodingDenis Kenzior2009-09-081-63/+74
| | | | | | - Introduce new enum gsm_dialect instead of unsigned char arguments - Use ISO639 3 letter codes for conversion tables - Use a single lookup table instead of 4 different ones
* Fix style issuesDenis Kenzior2009-09-081-36/+18
|
* Add support for national language variantsAki Niemi2009-09-081-107/+501
| | | | | | | Add API for supporting character conversion using national language variants. Also, add conversion tables for Turkish, Spanish and Portuguese, and fix the default table. The lookup algorithms were tweaked to support multiple tables.
* Fix trailing whitespaceDenis Kenzior2009-08-061-7/+7
|
* Fix signedness warningDenis Kenzior2009-07-131-1/+1
|
* Don't process surrogate pair charsDenis Kenzior2009-07-071-0/+4
| | | | These are not valid UCS2 chars
* Fix length check for valid UCS2 starting with 0xffDenis Kenzior2009-07-071-1/+8
|
* Add utility to convert SIM FS strings to UTF8Denis Kenzior2009-07-061-0/+124
|
* GSM to UTF8 should accept empty stringsDenis Kenzior2009-07-061-1/+1
|
* Don't fail in own_buf if items_written is NULLDenis Kenzior2009-06-191-2/+3
|
* Only USSD needs the special <cr> handlingDenis Kenzior2009-06-051-11/+11
| | | | | | Apparently all Cell Broadcasts are always 88 bytes long, with a 6 byte header and 82 byte payload. <cr> character is used as a terminator and padding for the unused payload
* Add implementation of telephony daemonDenis Kenzior2009-05-051-0/+693