summaryrefslogtreecommitdiffstats
path: root/src/util.c
AgeCommit message (Collapse)AuthorFilesLines
2012-08-16util: Make sure to handle special empty stringsDenis Kenzior1-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
2012-07-16util: Style issuesDenis Kenzior1-3/+2
2012-07-16util: update comment from previous commitDenis Kenzior1-6/+10
Cite the specification verbatim
2012-07-16util: Fix GSM to UTF8 conversion mechanismGuillaume Zajac1-3/+14
2011-10-10core: Update copyright informationMarcel Holtmann1-1/+1
2011-02-03util: Fix convert_utf8_to_gsm_best_lang logicDenis Kenzior1-2/+3
2011-02-03util: Add best dialect picker APIAki Niemi1-0/+64
2011-02-03util: Use gboolean for returning success / failureDenis Kenzior1-16/+19
2011-02-03util: Refactor conversion table handlingAki Niemi1-79/+126
2011-02-02util: Fix style issue with long linesAki Niemi1-48/+48
2010-11-29util: explicitly compare pointers to NULLLucas De Marchi1-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>
2010-11-22util: coding style fixes - rule M6Jeevaka Badrappan1-3/+3
2010-11-17util: Remove extra tabJeevaka Badrappan1-1/+1
2010-09-21Fix multi-line comment style issuesJeevaka Badrappan1-7/+14
2010-09-14util: Clean up some coding style violationsDenis Kenzior1-9/+9
2010-09-14util: Return the number of bytes read, not charsDenis Kenzior1-1/+1
To be consistent with the documentation header and other functions of this type
2010-09-14util: Add UCS2 to GSM 7bit converion functionJeevaka Badrappan1-0/+108
2010-09-14Fix common misspelling in source filesLucas De Marchi1-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
2010-09-09Fix wrong code point in Portuguese tableAki Niemi1-1/+1
2010-06-09util: Add a "sim string" encoding utility.Andrzej Zaborowski1-0/+46
2010-03-16Fix: Use g_try_malloc instead of g_malloc in utilDenis Kenzior1-3/+3
In these cases we were checking for NULL return, but the function used should have been g_try_malloc instead.
2010-01-12Style: Trailing whitespace & extra linesDenis Kenzior1-2/+2
2010-01-01Update copyright informationMarcel Holtmann1-1/+1
2009-12-24Use error label instead of err or err_outMarcel Holtmann1-6/+6
2009-12-17Style: Fix a few more occurences of if/elseDenis Kenzior1-1/+2
See Linux coding style document for details
2009-09-08Refactor SMS language dialect encoding / decodingDenis Kenzior1-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
2009-09-08Fix style issuesDenis Kenzior1-36/+18
2009-09-08Add support for national language variantsAki Niemi1-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.
2009-08-06Fix trailing whitespaceDenis Kenzior1-7/+7
2009-07-13Fix signedness warningDenis Kenzior1-1/+1
2009-07-07Don't process surrogate pair charsDenis Kenzior1-0/+4
These are not valid UCS2 chars
2009-07-07Fix length check for valid UCS2 starting with 0xffDenis Kenzior1-1/+8
2009-07-06Add utility to convert SIM FS strings to UTF8Denis Kenzior1-0/+124
2009-07-06GSM to UTF8 should accept empty stringsDenis Kenzior1-1/+1
2009-06-19Don't fail in own_buf if items_written is NULLDenis Kenzior1-2/+3
2009-06-05Only USSD needs the special <cr> handlingDenis Kenzior1-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
2009-05-05Add implementation of telephony daemonDenis Kenzior1-0/+693